Skip to content

CI and Release

CI and Release #26

Workflow file for this run

name: CI and Release
on:
merge_group:
push:
branches:
- main
# Trigger on version tags
tags:
- "v*"
pull_request:
jobs:
go:
uses: ./.github/workflows/go-ci.yml
publish:
needs: go
uses: ./.github/workflows/publish.yml
release:
name: Release
needs: go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.21
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}