Skip to content

Commit d8dc87b

Browse files
committed
CI: add publish step for version tags
1 parent 1e78844 commit d8dc87b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77
- '*-maint'
8+
tags:
9+
- 'v*'
810
pull_request:
911
branches:
1012
- master
@@ -76,3 +78,23 @@ jobs:
7678
with:
7779
name: dist
7880
path: dist
81+
publish:
82+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
83+
needs:
84+
- build
85+
runs-on: ubuntu-latest
86+
environment:
87+
name: release
88+
url: https://pypi.org/p/babel/
89+
permissions:
90+
id-token: write
91+
steps:
92+
- uses: actions/download-artifact@v3
93+
with:
94+
name: dist
95+
path: dist/
96+
- name: Publish package distributions to PyPI
97+
uses: pypa/gh-action-pypi-publish@release/v1
98+
with:
99+
verbose: true
100+
print-hash: true

0 commit comments

Comments
 (0)