awl/.gitea/workflows/release.yaml
Sam Therapy e1122a9de7
All checks were successful
Mirror Push / mirror (push) Successful in 8s
Test / test (stable) (push) Successful in 33s
Test / test (oldstable) (push) Successful in 42s
misc: Cleanup before a release
Kept a lot waiting, haven't I?

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-11-08 21:45:39 +01:00

36 lines
800 B
YAML

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