File tree 1 file changed +23
-12
lines changed
1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change 62
62
- name : Run tests
63
63
run : pytest -vv
64
64
65
- distribute :
65
+ release :
66
66
name : Distribution
67
67
runs-on : ubuntu-latest
68
68
needs : tests
@@ -89,15 +89,26 @@ jobs:
89
89
files : dist/*
90
90
env :
91
91
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92
-
93
- # - name: Publish distribution 📦 to Test PyPI
94
- # uses: pypa/gh-action-pypi-publish@master
95
- # with:
96
- # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
97
- # repository_url: https://test.pypi.org/legacy/
98
- # skip_existing: true
99
-
100
- - name : Publish distribution 📦 to PyPI
101
- uses : pypa/gh-action-pypi-publish@release/v1
92
+
93
+ - uses : actions/upload-artifact@v4
102
94
with :
103
- password : ${{ secrets.PYPI_API_TOKEN }}
95
+ path : ./dist
96
+
97
+ pypi-publish :
98
+ name : Upload release to PyPI
99
+ needs : release
100
+ runs-on : ubuntu-latest
101
+ # environment:
102
+ # name: pypi
103
+ # url: https://pypi.org/p/<your-pypi-project-name>
104
+ permissions :
105
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
106
+ steps :
107
+ # retrieve your distributions to artifact folder
108
+ - uses : actions/download-artifact@v4
109
+
110
+ - name : Publish package distributions to PyPI
111
+ uses : pypa/gh-action-pypi-publish@release/v1
112
+ with :
113
+ packages-dir : artifact/
114
+ skip-existing : true
You can’t perform that action at this time.
0 commit comments