Skip to content

Commit

Permalink
CI: add publish step for version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Oct 1, 2023
1 parent 1e78844 commit d8dc87b
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 @@ -5,6 +5,8 @@ on:
branches:
- master
- '*-maint'
tags:
- 'v*'
pull_request:
branches:
- master
Expand Down Expand Up @@ -76,3 +78,23 @@ jobs:
with:
name: dist
path: dist
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs:
- build
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/babel/
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 d8dc87b

Please sign in to comment.