Skip to content

feat: split development and release build github workflows #1

feat: split development and release build github workflows

feat: split development and release build github workflows #1

Workflow file for this run

name: Go - Release Build
on:
push:
tags:
- '*'
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.20.7
- name: Execute GoReleaser
uses: goreleaser/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}