Skip to content

Trying to add a go-releaser whatever that is #5

Trying to add a go-releaser whatever that is

Trying to add a go-releaser whatever that is #5

Workflow file for this run

name: Test Release
on:
push:
tags:
- 'test-release*' # Triggers on tags starting with 'test-release'
- 'v*.*.*-*' # Triggers on semver tags with a suffix (e.g., v0.0.1-test)
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Fetch All Tags
run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: '1.18.1'
- name: Run GoReleaser (Snapshot Mode)
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --snapshot # Enable snapshot mode for testing
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}