build: add release action #2
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: Release Go project | ||
on: | ||
push: | ||
tags: | ||
- "*" # trigger only if push new tag version | ||
jobs: | ||
build: | ||
name: Go Releaser Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
Check failure on line 21 in .github/workflows/release_build.yml GitHub Actions / Release Go projectInvalid workflow file
|
||
go-version: '1.22.5' | ||
id: go | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@master | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
workdir: ./app/ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} |