File tree 1 file changed +9
-21
lines changed
1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change 1
- name : upload pypi
1
+ name : Publish on pypi.org
2
2
3
3
on :
4
- # trigger only on release
5
- release :
6
- types : [published]
7
- # to trigger workflow manually from actions-tab
8
- workflow_dispatch :
4
+ release :
5
+ types : [published]
9
6
10
7
jobs :
11
8
publish :
12
- name : Upload to PyPI
13
- if : |
14
- startsWith(github.ref, 'refs/tags/v') &&
15
- startsWith(github.repository, 'TUW-GEO')
16
- needs : build
17
9
runs-on : ubuntu-latest
18
10
steps :
19
- - name : Print environment variables
20
- run : |
21
- echo "GITHUB_REF = $GITHUB_REF"
22
- echo "GITHUB_REPOSITORY = $GITHUB_REPOSITORY"
23
- - name : Download Artifacts
24
- uses : actions/download-artifact@v2
25
- - name : Display downloaded files
26
- run : ls -aR
11
+ - name : Checkout
12
+ uses : actions/checkout@v3
13
+ with :
14
+ fetch-depth : 0
15
+ - run : python3 -m pip install --upgrade build && python3 -m build
27
16
- name : Upload to PyPI
28
17
29
18
with :
30
19
skip_existing : true
31
20
verbose : true
32
21
verify_metadata : true
33
- packages_dir : Artifacts/dist/
34
22
user : __token__
35
- password : ${{ secrets.PYPI_API_TOKEN }} # this
23
+ password : ${{ secrets.PYPI_API_TOKEN }} # this needs to be uploaded to github actions secrets
You can’t perform that action at this time.
0 commit comments