File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -155,11 +155,26 @@ jobs:
155155 - name : Restore build artifact permissions
156156 run : cd dist && setfacl --restore=permissions-backup.acl
157157 continue-on-error : true
158- - name : Release
158+ - name : Import GPG key
159+ uses : crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
160+ with :
161+ gpg_private_key : ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
162+ passphrase : ${{ secrets.APIX_BOT_GPG_PASSPHRASE }}
163+ - name : GPG sign PyPI distributions
164+ run : |
165+ for file in dist/python/*.whl dist/python/*.tar.gz; do
166+ if [ -f "$file" ]; then
167+ gpg --batch --yes --pinentry-mode loopback --passphrase "$APIX_BOT_GPG_PASSPHRASE" --detach-sign -a "$file"
168+ fi
169+ done
170+ env :
171+ APIX_BOT_GPG_PASSPHRASE : ${{ secrets.APIX_BOT_GPG_PASSPHRASE }}
172+
173+ - name : Upload to PyPI
159174 env :
160175 TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
161176 TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
162- run : npx -p publib@latest publib-pypi
177+ run : twine upload dist/*
163178 - name : Extract Version
164179 id : extract-version
165180 if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments