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

Add job to automate releases #814

Closed
wants to merge 2 commits into from

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Jan 22, 2021

Fixes #805

Add a new job to the existing packaging workflow, to automate releases to PyPI and npm.

TODO

  • Update RELEASE.md to mention releases are automated
  • Generate the changelog using github-changelog-generator
  • Create the GitHub release automatically when everything is published
  • Trigger on new tags only
  • Switch to the prod PyPI
  • Add auth tokens as GitHub secrets
  • Move the release job to its own workflow? (it's a bit tricky at the moment to share jobs and logic between github actions workflows)

@jtpio jtpio added the testing label Jan 22, 2021

release:
# TODO
# if: startsWith(github.ref, 'refs/tags/')
Copy link
Member Author

Choose a reason for hiding this comment

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

This might not be required if the job is moved to its own workflow and triggered with:

on:
  push:
    tags:
      - '*'

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
Copy link
Member Author

Choose a reason for hiding this comment

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

To be able to get the previous tag in the following steps with git rev-list --tags

@jtpio
Copy link
Member Author

jtpio commented Jun 24, 2021

Closing in favor of #805 and #913

@jtpio jtpio closed this Jun 24, 2021
@jtpio jtpio deleted the automated-releases branch June 24, 2021 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate releases
1 participant