awl/.github/workflows/ghrelease.yaml
Sam Therapy 9c8f30f432
All checks were successful
continuous-integration/drone/push Build is passing
fix(ci): target 1.20, drop 1.19
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 22:40:16 +01:00

35 lines
738 B
YAML

name: GitHub Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20
- name: Install scdoc
run: sudo apt-get install -y scdoc
- name: Release with GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}