Skip to content

Commit 736f6a6

Browse files
committed
Migrated to trusted publishing
1 parent a7f5208 commit 736f6a6

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ on:
99
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
1010

1111
jobs:
12-
publish:
12+
build:
1313
runs-on: ubuntu-latest
14+
environment: release
1415
steps:
1516
- uses: actions/checkout@v3
1617
- name: Set up Python
@@ -21,7 +22,20 @@ jobs:
2122
run: pip install build
2223
- name: Create packages
2324
run: python -m build
25+
- name: Archive packages
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: dist
29+
path: dist
30+
31+
publish:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
environment: release
35+
permissions:
36+
id-token: write
37+
steps:
38+
- name: Retrieve packages
39+
uses: actions/download-artifact@v3
2440
- name: Upload packages
2541
uses: pypa/gh-action-pypi-publish@release/v1
26-
with:
27-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)