2022-05-13 15:43:54 +00:00
|
|
|
name: release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*"
|
2022-09-08 12:13:43 +00:00
|
|
|
workflow_dispatch:
|
2022-09-08 11:27:05 +00:00
|
|
|
|
2022-05-13 15:43:54 +00:00
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-08 13:12:26 +00:00
|
|
|
- name: Checkout repository and submodules
|
2022-05-13 15:43:54 +00:00
|
|
|
uses: actions/checkout@v2
|
2022-09-08 13:12:26 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.DECO_GITHUB_TOKEN }}
|
|
|
|
submodules: recursive
|
2022-05-13 15:43:54 +00:00
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
2022-09-08 09:21:00 +00:00
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v3
|
2022-05-13 15:43:54 +00:00
|
|
|
with:
|
2022-09-07 09:55:59 +00:00
|
|
|
go-version: 1.18
|
2022-09-08 09:21:00 +00:00
|
|
|
cache: true
|
2022-05-13 15:43:54 +00:00
|
|
|
- name: Run GoReleaser
|
2022-09-08 11:27:05 +00:00
|
|
|
uses: goreleaser/goreleaser-action@v3.1.0
|
2022-05-13 15:43:54 +00:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
2022-09-08 12:13:43 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|