chore: publish version v0.1.1 (#4) #3
Workflow file for this run
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
name: Releases publication | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- id: vars | |
run: | | |
echo ::set-output name=go_version::$(cat go.mod | head -3 | tail -1 | cut -d ' ' -f 2) | |
echo "Using Go version ${{ steps.vars.outputs.go_version }}" | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ steps.vars.outputs.go_version }} | |
- name: Compile the source | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: build --rm-dist --skip-validate | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} |