Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Fix system tests and run on PRs #20

Fix system tests and run on PRs

Fix system tests and run on PRs #20

Workflow file for this run

name: goreleaser
on:
pull_request:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Run GoReleaser build only
uses: goreleaser/goreleaser-action@v5
if: github.event_name == 'pull_request'
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: build --snapshot
- name: Run GoReleaser on tag
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}