devbox/.forgejo/workflows/release.yml
shoemoney 9b1165a49a
Some checks are pending
CI / vet-build-test (push) Waiting to run
feat(release): arm64/arm targets + Forgejo release one-shot + CI workflows 📦🤖
- build-release.sh: add linux/arm64 (Raspberry Pi!) + linux/arm targets — the
  curl|sh install on a clean Pi needs a real arm64 asset to download.
- scripts/release.sh: one-shot local release. Cross-compiles, then creates/updates
  the Forgejo release and uploads de-versioned assets (devbox_<os>_<arch>) that
  install.sh fetches directly. No CI runner required.
- .forgejo + .github CI workflows: go vet + build + test -race on push/PR;
  on vX.Y.Z tag, build-release + publish. GitHub's runs on hosted runners today.
- docker-compose: pull the published hub image by default; --build for local source.
2026-06-23 13:31:54 -05:00

23 lines
749 B
YAML

# On `vX.Y.Z` tag push: cross-compile every target and publish the Forgejo
# release with installer-named assets. Reuses scripts/release.sh so the local
# one-shot and CI never drift. Needs a runner + a RELEASE_TOKEN secret (a
# Forgejo token with write:repository). Until both exist, run release.sh by hand.
name: Release
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # tags + history for `git describe`
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- run: ./scripts/release.sh "${{ github.ref_name }}"
env:
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }}