Skip to content

ci: update checkout GHA for node 16 EOL #21

ci: update checkout GHA for node 16 EOL

ci: update checkout GHA for node 16 EOL #21

Workflow file for this run

name: goreleaser
on:
push:
tags:
- 'v*'
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.22.0'
cache: true
- name: Go Preflight Tests
run: |
go mod tidy
go test -v ./...
- name: Docker Login (ghcr.io)
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}