Skip to content

Commit

Permalink
Merge pull request #32 from valohai/gha-publish
Browse files Browse the repository at this point in the history
Configure publishing via CI
  • Loading branch information
hylje authored Jul 23, 2024
2 parents 65b70ab + 4d41498 commit f7e5d9d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,25 @@ jobs:
with:
name: dist
path: dist/

Publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs:
- Build
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/hai/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: dist
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
print-hash: true

0 comments on commit f7e5d9d

Please sign in to comment.