Merge pull request #360 from sh4msi/patch-1 #828
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
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*.*.*" | |
pull_request: | |
jobs: | |
release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- run: git fetch --prune --unshallow | |
- name: Run GoReleaser | |
if: contains(github.ref, 'tags/v') | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |