Skip to content

Commit

Permalink
cicd to publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
xbrianh committed Sep 3, 2024
1 parent 873d014 commit 87f917d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,22 @@ jobs:
with:
name: python-package-distributions
path: dist/
publish-to-pypi:
runs-on: ubuntu-latest
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs: build
environment:
name: pypi
url: https://pypi.org/p/xdlake
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 87f917d

Please sign in to comment.