Skip to content

feat: Add pre-release checks before running GoReleaser #37

feat: Add pre-release checks before running GoReleaser

feat: Add pre-release checks before running GoReleaser #37

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
pre-release-checks:
runs-on: ubuntu-latest
steps:
- name: Go Tests
uses: ./.github/workflows/go-test.yml
- name: Shell Tests
uses: ./.github/workflows/shell-test.yml
- name: Linting
uses: ./.github/workflows/golangci-lint.yml
goreleaser:
needs: pre-release-checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: ./.github/workflows/go-setup
- name: Release
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}