File tree 1 file changed +36
-15
lines changed
1 file changed +36
-15
lines changed Original file line number Diff line number Diff line change 5
5
types : [published]
6
6
7
7
jobs :
8
- pypi-publish :
9
- name : upload release to PyPI
8
+ build :
9
+ name : build
10
10
runs-on : ubuntu-latest
11
- environment : pypi
12
- permissions :
13
- id-token : write
14
11
steps :
15
- - uses : actions/checkout@v4
12
+ - name : Clone repo
13
+
16
14
17
- - name : Set up Python
18
- uses : actions/setup-python@v5
15
+ - name : Set up python
16
+ uses : actions/setup-python@v5.5.0
19
17
with :
20
- python-version : ' 3.9'
18
+ python-version : ' 3.13'
19
+
20
+ - name : Install pip dependencies
21
+ run : pip install build
21
22
22
- - name : Install build tool
23
- run : python -m pip install --upgrade build
23
+ - name : List pip dependencies
24
+ run : pip list
25
+
26
+ - name : Build project
27
+ run : python3 -m build
28
+
29
+ - name : Upload artifacts
30
+
31
+ with :
32
+ name : pypi-dist
33
+ path : dist/
24
34
25
- - name : Build package
26
- run : python -m build
35
+ pypi :
36
+ name : pypi
37
+ needs :
38
+ - build
39
+ permissions :
40
+ id-token : write
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - name : Download artifacts
44
+
45
+ with :
46
+ name : pypi-dist
47
+ path : dist/
27
48
28
- - name : Publish package distributions to PyPI
29
- uses : pypa/gh-action-pypi-publish@release/v1
49
+ - name : Publish to PyPI
50
+ uses : pypa/gh-action-pypi-publish@v1.12.4
You can’t perform that action at this time.
0 commit comments