Skip to content

ci: remove extra args from release job #22

ci: remove extra args from release job

ci: remove extra args from release job #22

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: go-with-cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: make install-tools
- run: make lint
test:
name: Test
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: go-with-cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: make install-tools
- run: make test
release:
name: Release
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: go-with-cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: make install-tools
- uses: go-semantic-release/action@v1
with:
bin: ./bin/semantic-release
hooks: goreleaser
allow-initial-development-versions: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}