2021-10-29 13:56:09 +00:00
|
|
|
name: goreleaser
|
|
|
|
|
2021-07-16 09:30:34 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2021-10-29 13:56:09 +00:00
|
|
|
- "v*.*.*"
|
2021-07-16 09:30:34 +00:00
|
|
|
jobs:
|
2021-10-29 13:56:09 +00:00
|
|
|
goreleaser:
|
2021-07-16 09:30:34 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-29 13:56:09 +00:00
|
|
|
environment: release
|
2021-07-16 09:30:34 +00:00
|
|
|
steps:
|
2022-03-03 17:07:19 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-16 09:30:34 +00:00
|
|
|
with:
|
2021-10-29 13:56:09 +00:00
|
|
|
submodules: true
|
|
|
|
- name: Set up Go
|
2022-04-11 10:36:53 +00:00
|
|
|
uses: actions/setup-go@v3
|
2021-07-16 09:30:34 +00:00
|
|
|
with:
|
2022-10-31 16:46:48 +00:00
|
|
|
go-version: 1.19
|
2022-04-11 10:36:53 +00:00
|
|
|
check-latest: true
|
2021-10-29 13:56:09 +00:00
|
|
|
- name: release dry run
|
|
|
|
run: make release-dry-run
|
|
|
|
- name: setup release environment
|
2021-07-16 09:30:34 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-10-29 13:56:09 +00:00
|
|
|
run: |-
|
|
|
|
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
|
|
|
|
- name: release publish
|
2022-10-04 18:21:32 +00:00
|
|
|
run: make release
|