Skip to content

fix: pin goreleaser version #5

fix: pin goreleaser version

fix: pin goreleaser version #5

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: goreleaser
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # This pattern matches tags like v1.0.0, v1.2.3, v1.0.0-alpha, etc.
branches:
- 'main'
- 'workflow/*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# https://github.com/goreleaser/goreleaser-action
goreleaser:
defaults:
run:
working-directory: ./scraper
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: 'latest'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}