update release github action

This commit is contained in:
Sinuhe Tellez 2021-05-05 23:32:21 -04:00
parent 9d9b079b59
commit fddb740d69

View File

@ -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 }}