File tree Expand file tree Collapse file tree 1 file changed +36
-17
lines changed Expand file tree Collapse file tree 1 file changed +36
-17
lines changed Original file line number Diff line number Diff line change 10
10
11
11
12
12
jobs :
13
- deploy :
13
+ release-build :
14
14
runs-on : ubuntu-latest
15
+
15
16
steps :
16
- - uses : actions/checkout@v3
17
- - name : Set up Python
18
- uses : actions/setup-python@v4
19
- with :
20
- python-version : ' 3.10'
21
- - name : Install dependencies
22
- run : |
23
- python -m pip install --upgrade pip
24
- pip install setuptools wheel twine build hatch
25
- - name : Build and publish
26
- env :
27
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
28
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29
- run : |
30
- python -m build
31
- twine upload dist/*
17
+ - uses : actions/checkout@v4
18
+
19
+ - uses : actions/setup-python@v4
20
+ with :
21
+ python-version : " 3.10"
22
+
23
+ - name : build release distributions
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ pip install setuptools wheel twine build hatch
27
+ python -m build
28
+
29
+ - name : upload dists
30
+ uses : actions/upload-artifact@v3
31
+ with :
32
+ name : release-dists
33
+ path : dist/
34
+
35
+ pypi-publish :
36
+ runs-on : ubuntu-latest
37
+ needs :
38
+ - release-build
39
+ permissions :
40
+ id-token : write
41
+
42
+ steps :
43
+ - name : Retrieve release distributions
44
+ uses : actions/download-artifact@v3
45
+ with :
46
+ name : release-dists
47
+ path : dist/
48
+
49
+ - name : Publish release distributions to PyPI
50
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments