Commit c91f95e 1 parent deaf9c4 commit c91f95e Copy full SHA for c91f95e
File tree 1 file changed +27
-7
lines changed
1 file changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,40 @@ on: push
3
3
jobs :
4
4
build :
5
5
runs-on : ubuntu-latest
6
- permissions :
7
- id-token : write
8
6
steps :
9
7
- uses : actions/checkout@v4
10
8
- uses : actions/setup-python@v5
11
9
with :
12
10
python-version : ' 3.10'
13
11
- run : pip install --upgrade build
14
12
- run : python -m build --sdist --wheel
15
- - name : Publish to TestPyPI
16
- uses : pypa/gh-action-pypi-publish@release/v1
13
+ - uses : actions/upload-artifact@v4
14
+ with :
15
+ name : python-package-distributions
16
+ path : dist/
17
+ test :
18
+ needs : build
19
+ permissions :
20
+ id-token : write
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/download-artifact@v4
24
+ with :
25
+ name : python-package-distributions
26
+ path : dist/
27
+ - uses : pypa/gh-action-pypi-publish@release/v1
17
28
with :
18
29
repository-url : https://test.pypi.org/legacy/
19
30
skip-existing : true
20
- - name : Publish to PyPI
21
- if : startsWith(github.ref, 'refs/tags')
22
- uses : pypa/gh-action-pypi-publish@release/v1
31
+ publish :
32
+ if : startsWith(github.ref, 'refs/tags/')
33
+ needs : test
34
+ permissions :
35
+ id-token : write
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/download-artifact@v4
39
+ with :
40
+ name : python-package-distributions
41
+ path : dist/
42
+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments