2024-01-22 22:57:21 +00:00
|
|
|
name: goreleaser
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: release
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
2024-01-23 04:32:18 +00:00
|
|
|
go-version: 1.21
|
2024-01-22 22:57:21 +00:00
|
|
|
check-latest: true
|
|
|
|
- name: release dry run
|
|
|
|
run: make release-dry-run
|
|
|
|
- name: setup release environment
|
|
|
|
env:
|
2024-01-23 04:32:18 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.CICD_PUBLISH_TOKEN }}
|
2024-01-22 22:57:21 +00:00
|
|
|
run: |-
|
2024-01-23 04:32:18 +00:00
|
|
|
echo 'GITHUB_TOKEN=${{secrets.CICD_PUBLISH_TOKEN}}' > .release-env
|
2024-01-22 22:57:21 +00:00
|
|
|
- name: release publish
|
|
|
|
run: make release
|