mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-06-03 13:44:21 +00:00
feat(workflows): add Gitea workflow to sync GitHub release assets for Windows/macOS
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user