Skip to content

Add Goreleaser to Rio terminal #1

Add Goreleaser to Rio terminal

Add Goreleaser to Rio terminal #1

Workflow file for this run

name: goreleaser
on:
workflow_dispatch:
pull_request:
push:
tags:
- "*"
permissions:
contents: write
packages: write
issues: write
id-token: write
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
flags: ""
steps:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mlugg/setup-zig@v1
- run: rustup default nightly
- run: cargo install --locked cargo-zigbuild
- run: cargo fetch --locked
- uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: "~> v2"
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GH_PAT: ${{ secrets.GH_PAT }}