cic-chain-events/.github/workflows/binary_release.yaml

31 lines
605 B
YAML
Raw Normal View History

2023-01-06 12:42:58 +01:00
name: binary_release
2023-01-06 09:07:19 +01:00
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
2023-01-06 12:42:58 +01:00
container:
image: goreleaser/goreleaser-cross
2023-01-06 09:07:19 +01:00
environment: build
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
2023-01-06 12:42:58 +01:00
go-version: 1.19
2023-01-06 09:07:19 +01:00
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
2023-01-06 12:42:58 +01:00
args: release --rm-dist
2023-01-06 09:07:19 +01:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}