-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
name: Upload Python Package to PYPI | ||
name: 🚀 Upload Python Package to PYPI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
test: | ||
name: Running Tests | ||
uses: ./.github/workflows/tests.yml | ||
quality: | ||
name: 🚧 Quality Gates | ||
uses: ./.github/workflows/quality.yaml | ||
|
||
publish: | ||
needs: [test] | ||
name: 🚀 Upload Python Package to PYPI | ||
runs-on: ubuntu-latest | ||
needs: [quality] | ||
environment: | ||
name: pypi | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: 🔍 Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🐍 Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build twine | ||
- name: Build and publish | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
python -m build -w | ||
twine upload -u __token__ dist/* | ||
|
||
- name: 📦 Install dependencies | ||
run: python -m pip install --upgrade pip build | ||
|
||
- name: 🔨 Build package | ||
run: python -m build | ||
|
||
- name: 🚀 Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,7 @@ python = """ | |
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
3.13: py313 | ||
""" | ||
|
||
[tool.tox.env_run_base] | ||
|