-
Notifications
You must be signed in to change notification settings - Fork 21
chore: Sign PyPi artifact #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,11 +155,26 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Release | ||
| - name: Import GPG key | ||
| uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec | ||
| with: | ||
| gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }} | ||
| passphrase: ${{ secrets.APIX_BOT_GPG_PASSPHRASE }} | ||
| - name: GPG sign PyPI distributions | ||
| run: | | ||
| for file in dist/awscdk_resources_mongodbatlas-*.whl dist/awscdk_resources_mongodbatlas-*.tar.gz; do | ||
oarbusi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if [ -f "$file" ]; then | ||
| gpg --batch --yes --pinentry-mode loopback --passphrase "$APIX_BOT_GPG_PASSPHRASE" --detach-sign -a "$file" | ||
| fi | ||
| done | ||
| env: | ||
| APIX_BOT_GPG_PASSPHRASE: ${{ secrets.APIX_BOT_GPG_PASSPHRASE }} | ||
|
|
||
| - name: Upload to PyPI | ||
|
||
| env: | ||
| TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | ||
| TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
| run: npx -p publib@latest publib-pypi | ||
| run: twine upload dist/* | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have you been able to test it?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not able to test if we don't want to release 😆 , but I tried to keep changes to a minimum (do only what publib was doing)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i understand, but just to make aware that we might have some issues in the next CDK release
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, we'll have to be careful on the next release |
||
| - name: Extract Version | ||
| id: extract-version | ||
| if: ${{ failure() }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you been able to test it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command I have tested, yes