Skip to content

Commit d54e7ba

Browse files
committed
Updated publishing workflow to the PyPA recommended method
1 parent 303c97d commit d54e7ba

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +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
1414
environment: release
15-
permissions:
16-
id-token: write
1715
steps:
1816
- uses: actions/checkout@v3
1917
- name: Set up Python
@@ -24,5 +22,20 @@ jobs:
2422
run: pip install build
2523
- name: Create packages
2624
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
2740
- name: Upload packages
2841
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)