awl/.forgejo/workflows/release.yaml
Sam Therapy ffaebb8aaf
All checks were successful
Mirror Push / mirror (push) Successful in 40s
Test / test (oldstable) (push) Successful in 55s
Test / test (stable) (push) Successful in 21s
fix(goreleaser): Add a lesser parallelism to allow the CI to work on its own
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-08-02 17:36:24 +02:00

35 lines
828 B
YAML

name: Forgejo Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Install scdoc
run: apt-get update && apt-get install -y scdoc
- name: Release with GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean -p 4 --skip docker,snapcraft
env:
GORELEASER_FORCE_TOKEN: gitea
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
UPLOAD_PACKAGES_SECRET: ${{ secrets.PUBLISH_TOKEN }}