-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add goreleaser for rosetta and add go cache (#14190)
* chore: add goreleaser for rosetta and add go cache * updates * don't fetch too much
- Loading branch information
1 parent
b3ff838
commit a21ce7d
Showing
19 changed files
with
153 additions
and
64 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
|
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
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,38 @@ | ||
name: Release Rosetta | ||
|
||
on: | ||
push: | ||
tags: | ||
- "tools/rosetta/v*.*.*" | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
goreleaser: | ||
permissions: | ||
contents: write # for goreleaser/goreleaser-action to create a GitHub release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.4 | ||
# get 'v*.*.*' part from 'rosetta/v*.*.*' and save to $GITHUB_ENV | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/rosetta/}" >> $GITHUB_ENV | ||
# remove the possible pre-existing same tag for cosmos-sdk related tags instead of rosetta tags | ||
# Because goreleaser enforces semantic versioning and will error on non compliant tags.(https://goreleaser.com/limitations/semver/) | ||
- name: Tag without prefix locally to avoid error in goreleaser | ||
run: |- | ||
git tag -d ${{ env.RELEASE_VERSION }} || echo "No such a tag exists before" | ||
git tag ${{ env.RELEASE_VERSION }} HEAD | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
# stick to version v0.179.0(https://github.com/cosmos/cosmos-sdk/issues/11125) | ||
version: v0.179.0 | ||
args: release --rm-dist --skip-validate --release-notes ./RELEASE_NOTES.md | ||
workdir: tools/rosetta | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_CURRENT_TAG: rosetta/${{ env.RELEASE_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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
ref: "release/v0.45.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- run: make build | ||
|
||
install-runsim: | ||
|
@@ -32,7 +32,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v3 | ||
|
@@ -49,7 +49,7 @@ jobs: | |
ref: "release/v0.45.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -67,7 +67,7 @@ jobs: | |
ref: "release/v0.45.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -86,7 +86,7 @@ jobs: | |
ref: "release/v0.45.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
ref: "release/v0.46.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- run: make build | ||
|
||
install-runsim: | ||
|
@@ -32,7 +32,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v3 | ||
|
@@ -50,7 +50,7 @@ jobs: | |
ref: "release/v0.46.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -68,7 +68,7 @@ jobs: | |
ref: "release/v0.46.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -86,7 +86,7 @@ jobs: | |
ref: "release/v0.46.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
ref: "release/v0.47.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- run: make build | ||
|
||
install-runsim: | ||
|
@@ -32,7 +32,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v3 | ||
|
@@ -50,7 +50,7 @@ jobs: | |
ref: "release/v0.47.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -68,7 +68,7 @@ jobs: | |
ref: "release/v0.47.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -86,7 +86,7 @@ jobs: | |
ref: "release/v0.47.x" | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v3 | ||
|
@@ -36,7 +36,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- run: make build | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
|
@@ -38,7 +38,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -54,7 +54,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
@@ -71,7 +71,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.3 | ||
go-version: 1.19.4 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
|
Oops, something went wrong.