2024-12-25 22:42:22 +00:00
|
|
|
name: Build and Release
|
2023-10-05 18:34:34 +00:00
|
|
|
|
|
|
|
on:
|
2024-12-25 22:42:22 +00:00
|
|
|
workflow_dispatch:
|
2023-10-05 18:34:34 +00:00
|
|
|
push:
|
|
|
|
tags:
|
2024-12-25 22:42:22 +00:00
|
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
2023-10-05 18:34:34 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --force --tags
|
|
|
|
- uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: stable
|
2023-10-05 19:40:41 +00:00
|
|
|
- name: Set up MinGW
|
|
|
|
uses: egor-tensin/setup-mingw@v2
|
|
|
|
with:
|
|
|
|
platform: x64
|
2023-10-05 18:34:34 +00:00
|
|
|
- uses: goreleaser/goreleaser-action@v5
|
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
|
|
|
version: ${{ env.GITHUB_REF_NAME }}
|
|
|
|
args: release --clean
|
|
|
|
env:
|
2024-12-25 22:42:22 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|