Skip to content
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

ci: Add GitHub action to publish to PyPi and GH on tag #41

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

mbeacom
Copy link
Contributor

@mbeacom mbeacom commented Feb 14, 2023

Issue number: N/A

Summary

Changes

Add automatic build / publish to pypi / release on GH on tag actions.

User experience

Maintainer pushes tag to GH resulting in:

  • Execution of safety CVE checks on dependencies (fail if CVEs are found)
  • Compare the current git tag (that triggered the action) against the current python module version (fail if they don't match)
  • Build python module and publish to PyPi
  • Publish GitHub Release (attaching the build wheel and source tar.gz files and auto-generating the release notes from GH API).

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@mbeacom mbeacom self-assigned this Feb 14, 2023
@mbeacom mbeacom changed the title Add GitHub action to publish to PyPi and GH on tag chore: Add GitHub action to publish to PyPi and GH on tag Feb 14, 2023
@mbeacom mbeacom changed the title chore: Add GitHub action to publish to PyPi and GH on tag ci: Add GitHub action to publish to PyPi and GH on tag Feb 14, 2023
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}

- name: Release
uses: softprops/action-gh-release@v1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wicked smart dude - big rust person

@mbeacom mbeacom merged commit 0048671 into aws-samples:main Feb 14, 2023
@mbeacom mbeacom deleted the add-auto-publish branch February 14, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants