Skip to content

Commit 2ab8122

Browse files
committed
Add initial TestPyPI package publishing
Signed-off-by: Pierre R. Mai <[email protected]>
1 parent 9743143 commit 2ab8122

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/protobuf.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626

2727
runs-on: ubuntu-22.04
2828

29+
permissions:
30+
id-token: write
31+
2932
steps:
3033
- name: Checkout OSI
3134
uses: actions/checkout@v4
@@ -137,6 +140,11 @@ jobs:
137140
name: python-dist
138141
path: dist/
139142

143+
- name: Publish Snapshot Release on TestPyPI
144+
uses: pypa/gh-action-pypi-publish@release/v1
145+
with:
146+
repository-url: https://test.pypi.org/legacy/
147+
140148
- name: Deploy to gh-pages if push to master branch
141149
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
142150
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)