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

workflow: Setup checksum generation and gpg signing for releases. #2282

Merged
merged 16 commits into from
Mar 16, 2022

Conversation

hjpotter92
Copy link
Member

What does this pull request do? Explain your changes. (required)

  • Adds a checksum file alongside release archives
  • Creates detached gpg signature for each archive
  • Automate release process

Does this pull request close any open issues?
Fixes #2147

 - Split test as its own workflow. Tests should be run for each
  individual branch.
 - Add an `.editorconfig` file for cross-IDE settings.
 - Update execution bit from source text file.
Update `upload_build` script to publish archives into a `RELEASES_DIR`.
@hjpotter92 hjpotter92 self-assigned this Feb 22, 2022
@hjpotter92 hjpotter92 marked this pull request as ready for review February 22, 2022 16:14
@hjpotter92
Copy link
Member Author

The actual gpg/checksum generation workflow needs it to be merged to master branch first... bootstrap paradox

Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

Great PR!

A few questions:

  • What benefits are there is moving all platform build steps into a single workflow file? Or is this just an organizational change?
  • IIUC these changes will result in a new release being published after each merge to master. That's cool. Maybe we should mark all of those as pre-releases to distinguish them from formal semver releases. WDYT? The pre-releases could then just use pre-generated release notes with a changeset and the formal semver releases could include a little more extra description since those would be for bigger milestones

upload_build.sh Show resolved Hide resolved
install.sh Show resolved Hide resolved
.github/workflows/release.yaml Show resolved Hide resolved
.github/workflows/release.yaml Show resolved Hide resolved
.github/workflows/test.yaml Show resolved Hide resolved
@livepeer livepeer deleted a comment from yondonfu Mar 10, 2022
@livepeer livepeer deleted a comment from yondonfu Mar 10, 2022
@livepeer livepeer deleted a comment from yondonfu Mar 10, 2022
@livepeer livepeer deleted a comment from yondonfu Mar 10, 2022
@hjpotter92
Copy link
Member Author

hjpotter92 commented Mar 10, 2022

Thanks!

  • What benefits are there is moving all platform build steps into a single workflow file? Or is this just an organizational change?

The release action was getting triggered after any of the dependent workflows completed. This is currently a limitation of github actions.

  • IIUC these changes will result in a new release being published after each merge to master. That's cool. Maybe we should mark all of those as pre-releases to distinguish them from formal semver releases. WDYT? The pre-releases could then just use pre-generated release notes with a changeset and the formal semver releases could include a little more extra description since those would be for bigger milestones

The release workflow runs for merges to master branch, but the release would be created only for semver releases (based on the action check below):

      - uses: actions-ecosystem/action-regex-match@v2
        id: match-tag
        with:
          text: ${{ github.event.workflow_run.head_branch }}
          regex: "^v([0-9]+\.\d+\.\d+)$"

Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM!

@hjpotter92 hjpotter92 merged commit 7745065 into master Mar 16, 2022
@hjpotter92 hjpotter92 deleted the hjp/release-signing branch March 16, 2022 05:43
ad-astra-video pushed a commit to ad-astra-video/go-livepeer that referenced this pull request May 25, 2022
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.

Add a checksums.txt file or equivalent with binary releases
2 participants