Skip to content

Merge pull request #4 from mozillazg/add-goreleaser #1

Merge pull request #4 from mozillazg/add-goreleaser

Merge pull request #4 from mozillazg/add-goreleaser #1

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
goreleaser:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
env:
GOPATH: ${{ env.HOME }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean -p 1
env:
GOPATH: ${{ env.HOME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}