We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f5208 commit 736f6a6Copy full SHA for 736f6a6
.github/workflows/publish.yml
@@ -9,8 +9,9 @@ on:
9
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
10
11
jobs:
12
- publish:
+ build:
13
runs-on: ubuntu-latest
14
+ environment: release
15
steps:
16
- uses: actions/checkout@v3
17
- name: Set up Python
@@ -21,7 +22,20 @@ jobs:
21
22
run: pip install build
23
- name: Create packages
24
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
35
+ permissions:
36
+ id-token: write
37
+ steps:
38
+ - name: Retrieve packages
39
+ uses: actions/download-artifact@v3
40
- name: Upload packages
41
uses: pypa/gh-action-pypi-publish@release/v1
- with:
- password: ${{ secrets.pypi_password }}
0 commit comments