Skip to content

build(deps): bump actions/checkout from 6 to 7 #250

build(deps): bump actions/checkout from 6 to 7

build(deps): bump actions/checkout from 6 to 7 #250

Workflow file for this run

name: ci
on:
push:
branches: ['main']
tags: ['v*']
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
release:
runs-on: ubuntu-latest
needs: [golangci, build]
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Setup ko
uses: ko-build/setup-ko@v0.9
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}