Commit 88e591b 1 parent e3f1e1f commit 88e591b Copy full SHA for 88e591b
File tree 1 file changed +27
-6
lines changed
1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change 4
4
types : [published]
5
5
6
6
jobs :
7
- publish :
8
- runs-on : ubuntu-22.04
7
+ build :
8
+ runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v4
11
11
- uses : actions/setup-python@v5
16
16
run : |
17
17
python -m pip install --upgrade build
18
18
python -m build
19
- - name : Publish package to PyPI
20
- uses : pypa/gh-action-pypi-publish@release/v1
19
+ - name : Store the distribution packages
20
+ uses : actions/upload-artifact@v4
21
21
with :
22
- user : __token__
23
- password : ${{ secrets.PYPI_API_TOKEN }}
22
+ name : python-package-distributions
23
+ path : dist/
24
+
25
+ publish-to-pypi :
26
+ name : Publish to PyPI
27
+ needs :
28
+ - build
29
+ runs-on : ubuntu-latest
30
+ environment :
31
+ name : pypi
32
+ url : https://pypi.org/p/dacite
33
+ permissions :
34
+ id-token : write # IMPORTANT: mandatory for trusted publishing
35
+ steps :
36
+ - name : Download dist
37
+ uses : actions/download-artifact@v4
38
+ with :
39
+ name : python-package-distributions
40
+ path : dist/
41
+ - name : Publish package to PyPI
42
+ uses : pypa/gh-action-pypi-publish@release/v1
43
+ with :
44
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments