Merge pull request #125 from mattn/fix-golangci-lint #260
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: goreleaser | |
on: | |
pull_request: | |
push: | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- name: Run GoReleaser(xcgo) Snapshot | |
run: | | |
make snapshot | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run GoReleaser(xcgo) Publish | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: | | |
make publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |