feat: add Homebrew and Scoop publishing scripts, enhance versioning metadata
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user