File tree Expand file tree Collapse file tree 1 file changed +0
-49
lines changed Expand file tree Collapse file tree 1 file changed +0
-49
lines changed Original file line number Diff line number Diff line change 5656 path : dist
5757 overwrite : true
5858
59- release_pypi :
60- name : Publish to PyPI
61- needs : release
62- runs-on : ubuntu-latest
63- permissions :
64- contents : read
65- issues : write
66- steps :
67- - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
68- with :
69- node-version : 18.x
70- - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
71- with :
72- python-version : 3.x
73- - name : Download build artifacts
74- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
75- with :
76- name : build-artifact
77- path : dist
78- - name : Restore build artifact permissions
79- run : cd dist && setfacl --restore=permissions-backup.acl
80- continue-on-error : true
81- - name : Import GPG key
82- uses : crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
83- with :
84- gpg_private_key : ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
85- passphrase : ${{ secrets.APIX_BOT_GPG_PASSPHRASE }}
86- - name : GPG sign PyPI distributions
87- run : |
88- for file in dist/python/*.whl dist/python/*.tar.gz; do
89- if [ -f "$file" ]; then
90- gpg --batch --yes --pinentry-mode loopback --passphrase "$APIX_BOT_GPG_PASSPHRASE" --detach-sign -a "$file"
91- fi
92- done
93- env :
94- APIX_BOT_GPG_PASSPHRASE : ${{ secrets.APIX_BOT_GPG_PASSPHRASE }}
95-
96- - name : Upload to PyPI
97- env :
98- TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
99- TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
100- run : |
101- pip install twine
102- twine upload dist/python/*.whl dist/python/*.tar.gz
103- - name : Extract Version
104- id : extract-version
105- if : ${{ failure() }}
106- run : echo "VERSION=$(cat dist/version.txt)" >> "${GITHUB_OUTPUT}"
107-
10859 release_npm :
10960 name : Publish to npm
11061 needs : release
You can’t perform that action at this time.
0 commit comments