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

feat: Add release automation config #108

Merged
merged 14 commits into from
Sep 7, 2021
Merged

feat: Add release automation config #108

merged 14 commits into from
Sep 7, 2021

Conversation

shiki-tak
Copy link
Contributor

@shiki-tak shiki-tak commented Apr 22, 2021

Closes: #107

Description

  • Added config to automatically release PRs for release when they are merged into the main branch.

What we can do with this.

  1. Automatically create a new version from the branch name.
  2. Automatically generate and commit a changelog.
  3. Upload dev contracts
  4. Publish

Release process

  1. make PR to main branch
  • The format of the branch name should be release-vx.x.x-x.x.x.
  • PR's comment becomes the body of the release notes.
  1. On the PR, CI job(changelog.yml) extracts target version from branch name.
  2. CI job create new tag from branch name.
  3. CI job generates the changelog and appends to CHANGELOG-LINK.md
  1. Github Actions automatically commit CHANGELOG-LINK.md.
  2. PR review.
  3. merge -> main
  4. On the main, CI job(release.yml) publish artifacts and create release notes.

Proposal

The original repository tag is inconvenient to update our changelog from the release tag.
How about removing the original repository tag from the remote repository?

Motivation and context

How has this been tested?

Checklist:

  • I followed the contributing guidelines.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@loloicci
Copy link
Contributor

Want document about release process in the repository (not only in PR comment).

@loloicci
Copy link
Contributor

Do you have a github repository in which you tested this workflow? If you have, I want to see it to review.

@shiki-tak
Copy link
Contributor Author

Do you have a github repository in which you tested this workflow? If you have, I want to see it to review.

Please use the following repositories.
https://github.com/shiki-tak/cosmwasm-1

Copy link
Contributor

@loloicci loloicci left a comment

Choose a reason for hiding this comment

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

https://github.com/shiki-tak/cosmwasm-1/blob/main/CHANGELOG-MY.md

Want not only title of the commit log, but also PR number or commit hash in the changelog.

.github/workflows/changelog.yml Outdated Show resolved Hide resolved
.chglog/CHANGELOG-LINK.tpl.md Outdated Show resolved Hide resolved
.chglog/config.yml Outdated Show resolved Hide resolved
.chglog/config.yml Outdated Show resolved Hide resolved
.github/workflows/changelog.yml Outdated Show resolved Hide resolved
@whylee259
Copy link
Contributor

👍

.github/workflows/changelog.yml Outdated Show resolved Hide resolved
.github/workflows/changelog.yml Outdated Show resolved Hide resolved
.github/workflows/changelog.yml Outdated Show resolved Hide resolved
@shiki-tak
Copy link
Contributor Author

@whylee259 @loloicci @brew0722
git-chglog can also automatically add Pull Requests and Revert to CHANGELOG. (I'm not including them in the current template.)
Do you think this is necessary?

@whylee259
Copy link
Contributor

@whylee259 @loloicci @brew0722
git-chglog can also automatically add Pull Requests and Revert to CHANGELOG. (I'm not including them in the current template.)
Do you think this is necessary?

I don't think it is necessary.

@shiki-tak
Copy link
Contributor Author

https://github.com/shiki-tak/cosmwasm-1/blob/main/CHANGELOG-MY.md

Want not only title of the commit log, but also PR number or commit hash in the changelog.

I added commit hash in changelog.
https://github.com/line/cosmwasm/pull/108/files#diff-89474b0fcc5409cf997158a804c3dbd2e2758b259ac76e7b53b9a201c7c464fcR8

@whylee259 whylee259 changed the base branch from develop to main June 17, 2021 00:51
.github/workflows/release.yml Outdated Show resolved Hide resolved
devtools/generate_release_tag.sh Outdated Show resolved Hide resolved
@CLAassistant
Copy link

CLAassistant commented Jul 16, 2021

CLA assistant check
All committers have signed the CLA.

.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
@shiki-tak shiki-tak merged commit 11bd9d8 into main Sep 7, 2021
@loloicci loloicci deleted the shiki_tak/issues/107 branch June 3, 2022 06:41
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.

Release Automation
4 participants