diff options
| author | TheMas3212 <mas3212@gmail.com> | 2026-07-10 11:35:55 +1000 |
|---|---|---|
| committer | TheMas3212 <mas3212@gmail.com> | 2026-07-10 11:35:55 +1000 |
| commit | 3b5affb24d67a8306a7cae82e078b0828eae32bc (patch) | |
| tree | dac2bdb854b9b1feae69cd340ace66565b7ce4c5 /.github/workflows/python-publish.yml | |
| parent | 908f4bab82778c72270af1a885f92c2c391ef831 (diff) | |
| download | tasd-py-3b5affb24d67a8306a7cae82e078b0828eae32bc.tar.gz tasd-py-3b5affb24d67a8306a7cae82e078b0828eae32bc.zip | |
Setup publishing workflow
Diffstat (limited to '.github/workflows/python-publish.yml')
| -rw-r--r-- | .github/workflows/python-publish.yml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..596e713 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,53 @@ +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + release-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Build release distributions + run: | + python -m pip install build + python -m build + + - name: Upload distributions + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + pypi-publish: + runs-on: ubuntu-latest + needs: + - release-build + permissions: + id-token: write + + environment: + name: pypi + url: https://pypi.org/p/tasd + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ |
