Skip to content

ci: fix release by providing github token #5

ci: fix release by providing github token

ci: fix release by providing github token #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
checks: write
jobs:
go-mod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Check go mod
run: |
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- uses: docker/setup-buildx-action@v3
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean --skip=publish --snapshot