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 49a1653 commit 855990a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
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 855990a

Please sign in to comment.