Skip to content

[.github/workflows/release.yml] Go back to only running on new tag ; … #30

[.github/workflows/release.yml] Go back to only running on new tag ; …

[.github/workflows/release.yml] Go back to only running on new tag ; … #30

Workflow file for this run

name: goreleaser
on:
push:
tags:
- '**'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Lint with go vet
run: "go vet ./cmd"
-
name: Lint with staticcheck
uses: actions/setup-go@v3
- uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2022.1.3"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref != 'refs/heads/master'