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

Improve release workflow #1869

Merged
merged 1 commit into from Apr 9, 2024
Merged

Improve release workflow #1869

merged 1 commit into from Apr 9, 2024

Conversation

ydah
Copy link
Member

@ydah ydah commented Apr 9, 2024

This PR improves the release workflow.
It turns out that being able to push directly to the default branch is quite difficult. That's because if GitHub actions can push to a protected branch, all you have to do is code a workflow that creates a branch and pushes it to other branches, and any collaborator in the repository can push whatever code they want to any branch.
https://github.com/orgs/community/discussions/25305#discussioncomment-3247401

That last one step might be a pain, but I think it's better to automate it to the point where you create a PR that switches back versions.
After the release workflow, a PR is created that switches back, so we should just merge it.

Note that this requires the following settings to be checked on:


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • [-] Added tests.
  • [-] Updated documentation.
  • [-] Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@ydah ydah requested a review from a team as a code owner April 9, 2024 07:35
@ydah ydah force-pushed the improve-release branch 2 times, most recently from 62761b9 to 16c3fdd Compare April 9, 2024 07:40
.github/workflows/publish.yml Outdated Show resolved Hide resolved
.github/workflows/publish.yml Outdated Show resolved Hide resolved
@ydah
Copy link
Member Author

ydah commented Apr 9, 2024

@bquorning I don't have permission, so please check if the following settings are checked ON.

@ydah ydah merged commit 26fd2dd into master Apr 9, 2024
24 checks passed
@ydah ydah deleted the improve-release branch April 9, 2024 18:45
@bquorning
Copy link
Collaborator

Yep, the setting is ON.

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.

None yet

2 participants