Sam Therapy
26ef04b969
Make the upload process to Gitea packages much less of a clusterbomb Reviewed-on: #229
37 lines
844 B
YAML
37 lines
844 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: '>=1.21'
|
|
|
|
- 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 --rm-dist
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
|
UPLOAD_PACKAGES_USERNAME: sam
|
|
UPLOAD_PACKAGES_SECRET: ${{ secrets.PUBLISH_TOKEN }}
|