-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal: Refactor project's version handling and release process
Simplify version computation logic in Make files and start using Punch's version file to track version.
- Loading branch information
Showing
11 changed files
with
321 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Update [Release Process] documentation | ||
|
||
[Release Process]: docs/release-process.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
internal: Refactor project's version handling | ||
|
||
Simplify version computation logic in Make files and start using Punch's | ||
version file to track version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Make: Refactor release-related targets | ||
|
||
- Rename `tag-next-release` target to `release-tag`. | ||
- Rename `release` target to `release-build`. | ||
- Add `release-stable-branch` target that creates and pushes a stable branch | ||
for the current release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,21 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
# Fetch all history as the recommended way to fetch all tags and | ||
# branches of the project. | ||
# This allows the release helpers in common.mk to determine the | ||
# project's version from git correctly. | ||
# For more info, see: | ||
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | ||
fetch-depth: 0 | ||
- name: Set up Go 1.15 | ||
uses: actions/[email protected] | ||
with: | ||
go-version: "1.15.x" | ||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
- name: Install oasis-node prerequisites | ||
- name: Install Oasis Node prerequisites | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install make libseccomp-dev protobuf-compiler | ||
|
@@ -43,9 +51,15 @@ jobs: | |
GORELEASER_VERSION: 0.127.0 | ||
GORELEASER_TARBALL: goreleaser_Linux_x86_64.tar.gz | ||
CURL_CMD: curl --proto =https --tlsv1.2 -sSL | ||
- name: Create release | ||
- name: Set RELEASE_BRANCH name for stable/bugfix releases | ||
run: | | ||
GIT_VERSION=${GITHUB_REF#refs/tags/v} | ||
if [[ ! ${GIT_VERSION} =~ ^[0-9]+\.[0-9]+$ ]]; then | ||
echo ::set-env name=RELEASE_BRANCH::stable/${GIT_VERSION%.*}.x | ||
fi | ||
- name: Build and publish the next release | ||
run: | | ||
make release | ||
make release-build | ||
env: | ||
# Instruct Make to create a real release. | ||
OASIS_CORE_REAL_RELEASE: "true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
year = '20' | ||
minor = 11 | ||
micro = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.