Skip to content

Commit

Permalink
add publish-test-pypi job
Browse files Browse the repository at this point in the history
  • Loading branch information
ITProKyle committed Aug 2, 2024
1 parent 9f526d9 commit 6a8d620
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: default

on:
pull_request: # any pull request
push:
Expand All @@ -21,12 +19,33 @@ jobs:
poetry-plugins: poetry-dynamic-versioning[plugin]
python-version: ${{ matrix.python-version }}
python-build:
needs:
- python-checks
uses: finleyfamily/workflows/.github/workflows/python.build.yml@master
with:
poetry-plugins: poetry-dynamic-versioning[plugin]
spellcheck:
uses: finleyfamily/workflows/.github/workflows/spellcheck.yml@master
with:
node-version: '20'
publish-test-pypi:
name: ⤴️ Publish 📦 To Test PyPI
if: github.event_name == 'push' && github.ref_name == 'master'
needs:
- python-checks
- python-build
- spellcheck
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/project/ghactions
permissions:
id-token: write
steps:
- name: Download Distribution Artifact
uses: actions/download-artifact@v4
with:
name: pypi-dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
repository-url: https://test.pypi.org/legacy/
3 changes: 2 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.2",
"words": [
"ghactions",
"octocat"
"octocat",
"pypa"
]
}

0 comments on commit 6a8d620

Please sign in to comment.