File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,16 @@ name: Upload Python Package
5
5
6
6
on :
7
7
release :
8
- types : [published]
8
+ types : [published, workflow_dispatch ]
9
9
10
10
jobs :
11
11
deploy :
12
12
runs-on : ubuntu-latest
13
+ environment :
14
+ name : pypi
15
+ url : https://pypi.org/p/mpi4jax
16
+ permissions :
17
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
13
18
14
19
steps :
15
20
- uses : actions/checkout@v2
@@ -30,11 +35,10 @@ jobs:
30
35
run : |
31
36
python -m pip install --upgrade pip
32
37
pip install setuptools wheel twine mpi4py cython
33
-
34
- - name : Build and publish
35
- env :
36
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
37
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
38
+
39
+ - name : Build package
38
40
run : |
39
41
python setup.py sdist
40
- twine upload dist/*
42
+
43
+ - name : Publish package distributions to PyPI
44
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments