Skip to content

build(deps): bump actions/checkout from 4.2.0 to 4.2.1 in the actions-deps group #135

build(deps): bump actions/checkout from 4.2.0 to 4.2.1 in the actions-deps group

build(deps): bump actions/checkout from 4.2.0 to 4.2.1 in the actions-deps group #135

Workflow file for this run

name: Go
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
name: Build
runs-on: ubuntu-latest
environment: docker
strategy:
fail-fast: true
matrix:
go: ["1.21.x"]
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/[email protected]
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}