Skip to content

Bump actions/checkout from 3 to 4 #154

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #154

Workflow file for this run

name: Go
on:
push:
tags:
- "*"
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Test
run: go test -v ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}