update release github action
This commit is contained in:
parent
9d9b079b59
commit
fddb740d69
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -22,11 +22,14 @@ jobs:
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
-
|
||||
name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
-
|
||||
name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: ${GITHUB_REF/refs\/tags\//}
|
||||
version: ${{ env.RELEASE_VERSION }}
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user