awl/.gitea/workflows/release.yaml
Sam Therapy 0a6d6b432c
Some checks failed
Mirror Push / mirror (push) Successful in 11s
Test / test (oldstable) (push) Successful in 43s
Test / test (stable) (push) Successful in 38s
Gitea Release / release (push) Failing after 1m10s
fix(ci): Force goreleaser to use gitea
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-11-08 22:04:09 +01:00

37 lines
853 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: apt-get update && apt-get install -y scdoc
- name: Release with GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GORELEASER_FORCE_TOKEN: gitea
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
UPLOAD_PACKAGES_SECRET: ${{ secrets.PUBLISH_TOKEN }}