2
0
Files
gin-sse/.github/workflows/goreleaser.yml
T
Bo-Yi Wu b0e321a937 ci: refactor GitHub Actions workflows for improved efficiency
- Add a GitHub Actions workflow for Bearer PR Check
- Add Bearer action to Go workflow
- Remove macOS from Go workflow operating systems
- Remove redundant checkout step from Go workflow

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-12-31 15:45:48 +08:00

35 lines
695 B
YAML

name: Goreleaser
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}