2022-12-01 10:19:47 +01:00
|
|
|
name: binary_release
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
2022-12-01 10:19:47 +01:00
|
|
|
container:
|
|
|
|
image: goreleaser/goreleaser-cross
|
2022-11-30 10:51:24 +01:00
|
|
|
environment: build
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-02-21 18:51:05 +01:00
|
|
|
uses: actions/checkout@v3
|
2022-11-30 10:51:24 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-02-21 18:51:05 +01:00
|
|
|
- name: Workaround Git Security Warning
|
|
|
|
run: |
|
|
|
|
# Workaround a bug in github actions:
|
|
|
|
# https://github.com/actions/runner-images/issues/6775.
|
|
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
|
|
2022-11-30 10:51:24 +01:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2023-02-24 17:48:23 +01:00
|
|
|
go-version: 1.20.1
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
- name: Run GoReleaser
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
with:
|
|
|
|
version: latest
|
2022-12-01 10:19:47 +01:00
|
|
|
args: release --rm-dist
|
2022-11-30 10:51:24 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|