feat(workflows): add Gitea workflow to sync GitHub release assets for Windows/macOS

This commit is contained in:
Ivan
2026-04-08 03:28:08 -05:00
parent 96fb1a4e2f
commit aa8723d0f4
3 changed files with 206 additions and 22 deletions
+2 -22
View File
@@ -1,4 +1,5 @@
# Tagged releases from master: Windows + macOS builds.
# Tagged releases: Windows + macOS builds (same idea as .gitea/workflows/build.yml — any tag
# points at a commit; no requirement that the tag be on master).
#
# Pinned first-party actions (bump tag and SHA together when upgrading):
# actions/checkout@v6.0.1 8e8c483db84b4bee98b60c0593521ed34d9990e8
@@ -31,29 +32,8 @@ env:
PNPM_VERSION: "10.32.1"
jobs:
verify-master:
name: Verify tag on master
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
fetch-depth: 0
- name: Ensure tagged commit is on master
run: |
set -euo pipefail
git fetch origin master
if ! git merge-base --is-ancestor "${GITHUB_SHA}" origin/master; then
echo "Tagged commit is not an ancestor of origin/master; release tags must be cut from master." >&2
exit 1
fi
build-release:
name: Build release (${{ matrix.label }})
needs: verify-master
if: always() && (needs.verify-master.result == 'success' || needs.verify-master.result == 'skipped')
strategy:
fail-fast: false
matrix: