Skip to content

Update actions/checkout action to v4 #311

Update actions/checkout action to v4

Update actions/checkout action to v4 #311

Workflow file for this run

name: release
on:
push:
tags:
- v*
branches:
- master
paths:
- .github/workflows/release.yaml
- pkg/**
- go.*
pull_request:
branches:
- master
paths:
- .github/workflows/release.yaml
- pkg/**
- go.*
jobs:
build:
strategy:
matrix:
platform:
- runs-on: ubuntu-latest
GOOS: linux
GOARCH: amd64
- runs-on: ubuntu-latest
GOOS: linux
GOARCH: arm64
- runs-on: ubuntu-latest
GOOS: linux
GOARCH: arm
- runs-on: ubuntu-latest
GOOS: darwin
GOARCH: amd64
- runs-on: ubuntu-latest
GOOS: darwin
GOARCH: arm64
- runs-on: ubuntu-latest
GOOS: windows
GOARCH: amd64
runs-on: ${{ matrix.platform.runs-on }}
env:
GOOS: ${{ matrix.platform.GOOS }}
GOARCH: ${{ matrix.platform.GOARCH }}
CGO_ENABLED: 0
timeout-minutes: 10
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-go@v3
with:
go-version: 1.21.0
cache: true
- run: go build -ldflags '-X main.version=${{ github.ref_name }}'
- uses: int128/go-actions/release@v1
with:
binary: kauthproxy
publish:
if: github.ref_type == 'tag'
needs:
- build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: rajatjindal/krew-release-bot@v0.0.46