File tree Expand file tree Collapse file tree 2 files changed +52
-9
lines changed Expand file tree Collapse file tree 2 files changed +52
-9
lines changed Original file line number Diff line number Diff line change 5
5
workflow_dispatch :
6
6
7
7
jobs :
8
- publish :
8
+ build :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- name : Check out repository
25
25
- name : Build package
26
26
run : python -m build
27
27
28
- - name : Publish to PyPI
28
+ - name : Upload distributions
29
+ uses : actions/upload-artifact@v4
30
+ with :
31
+ name : release-dists
32
+ path : dist/
33
+
34
+ publish :
35
+ runs-on : ubuntu-latest
36
+ needs :
37
+ - build
38
+ permissions :
39
+ id-token : write # required for trusted publishing
40
+ environment :
41
+ name : pypi
42
+ url : https://pypi.org/p/orthority
43
+
44
+ steps :
45
+ - name : Retrieve distribution
46
+ uses : actions/download-artifact@v4
47
+ with :
48
+ name : release-dists
49
+ path : dist/
50
+
51
+ - name : Publish distribution
29
52
uses : pypa/gh-action-pypi-publish@release/v1
30
53
with :
31
- user : __token__
32
- password : ${{ secrets.PYPI_TOKEN }}
54
+ packages-dir : dist/
Original file line number Diff line number Diff line change 3
3
workflow_dispatch :
4
4
5
5
jobs :
6
- publish :
6
+ build :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- name : Check out repository
23
23
- name : Build package
24
24
run : python -m build
25
25
26
- - name : Publish to TestPyPI
26
+ - name : Upload distributions
27
+ uses : actions/upload-artifact@v4
28
+ with :
29
+ name : release-dists
30
+ path : dist/
31
+
32
+ publish :
33
+ runs-on : ubuntu-latest
34
+ needs :
35
+ - build
36
+ permissions :
37
+ id-token : write # required for trusted publishing
38
+ environment :
39
+ name : pypi
40
+ url : https://test.pypi.org/p/orthority
41
+
42
+ steps :
43
+ - name : Retrieve distribution
44
+ uses : actions/download-artifact@v4
45
+ with :
46
+ name : release-dists
47
+ path : dist/
48
+
49
+ - name : Publish distribution
27
50
uses : pypa/gh-action-pypi-publish@release/v1
28
51
with :
29
- user : __token__
30
- password : ${{ secrets.TEST_PYPI_TOKEN }}
31
- repository_url : https://test.pypi.org/legacy/
52
+ packages-dir : dist/
You can’t perform that action at this time.
0 commit comments