-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Install required tooling * Create Git tag locally instead of via GitHub API so Goreleaser can find it Signed-off-by: Reinhard Nägele <[email protected]>
- Loading branch information
1 parent
5dc9325
commit 4f86929
Showing
2 changed files
with
33 additions
and
9 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
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 |
---|---|---|
|
@@ -16,15 +16,40 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Tag | ||
uses: tvdias/[email protected] | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.14.5" | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
repo-token: "${{ secrets.CI_TOKEN }}" | ||
tag: "${{ github.event.inputs.version }}" | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install tools | ||
run: ./setup.sh | ||
|
||
- name: Check License Headers | ||
run: mage -v checkLicenseHeaders | ||
|
||
- name: Lint | ||
run: mage -v lint | ||
|
||
- name: Test | ||
run: mage -v test | ||
|
||
- name: Tag | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
tag='${{ github.event.inputs.version }}' | ||
git tag --annotate --message "Tag for release $tag" "$tag" | ||
git push origin "refs/tags/$tag" | ||
- name: Release | ||
run: mage -v release | ||
env: | ||
|