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:
|
2021-11-03 11:01:22 +00:00
|
|
|
- uses: actions/checkout@v2.4.0
|
2021-07-16 09:30:34 +00:00
|
|
|
with:
|
2021-10-29 13:56:09 +00:00
|
|
|
submodules: true
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
2021-07-16 09:30:34 +00:00
|
|
|
with:
|
2021-09-03 16:54:34 +00:00
|
|
|
go-version: 1.17
|
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
|
|
|
|
run: make release
|