feat: add Homebrew and Scoop publishing scripts, enhance versioning metadata
Test / testing (push) Successful in 5m30s
Release / build-and-upload (release) Failing after 9m9s

This commit is contained in:
2026-08-14 11:35:52 +02:00
parent ae30ba1240
commit 333c7468e9
9 changed files with 266 additions and 15 deletions
+15 -2
View File
@@ -26,9 +26,12 @@ jobs:
run: make test
- name: Build all artifacts (default + cloud, all platforms)
env:
VERSION: ${{ gitea.event.release.tag_name }}
PRERELEASE: ${{ gitea.event.release.prerelease }}
run: |
make release
make release-cloud
make release VERSION="$VERSION" PRERELEASE="$PRERELEASE"
make release-cloud VERSION="$VERSION" PRERELEASE="$PRERELEASE"
- name: Upload artifacts to release
env:
@@ -43,3 +46,13 @@ jobs:
-F "attachment=@${f};filename=${name}" \
"${api}?name=${name}"
done
# Homebrew/Linuxbrew tap + Scoop bucket: only for stable releases —
# a prerelease shouldn't become what `brew install`/`scoop install`
# resolve to by default. See .gitea/scripts/publish-tap.sh.
- name: Publish Homebrew/Scoop tap
if: gitea.event.release.prerelease != true
env:
VERSION: ${{ gitea.event.release.tag_name }}
TAP_TOKEN: ${{ secrets.TAP_TOKEN }}
run: .gitea/scripts/publish-tap.sh
+27
View File
@@ -0,0 +1,27 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: make check