2021-08-18 08:31:37 +00:00
|
|
|
name: goreleaser
|
|
|
|
|
2021-07-16 09:30:34 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2021-08-18 08:31:37 +00:00
|
|
|
- "v*.*.*"
|
2021-07-16 09:30:34 +00:00
|
|
|
jobs:
|
2021-08-18 08:31:37 +00:00
|
|
|
goreleaser:
|
2021-07-16 09:30:34 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-08-18 08:31:37 +00:00
|
|
|
environment: release
|
2021-07-16 09:30:34 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2021-08-18 08:31:37 +00:00
|
|
|
submodules: true
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
2021-07-16 09:30:34 +00:00
|
|
|
with:
|
2021-08-18 08:31:37 +00:00
|
|
|
go-version: 1.16.4
|
|
|
|
- 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-08-18 08:31:37 +00:00
|
|
|
run: |-
|
|
|
|
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
|
|
|
|
- name: release publish
|
|
|
|
run: make release
|