publish-github.sh: publish main and tags only (work-in-progress branches stay on Forgejo)
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-20 00:12:14 +03:00
parent eb923234af
commit d670d63bcc

View file

@ -38,6 +38,11 @@ work="$(mktemp -d)"
trap 'rm -rf "${work}"' EXIT
git clone --quiet --bare --no-local "${root}" "${work}/repo.git"
cd "${work}/repo.git"
# Only main and the tags are published: other branches (work in progress) are dropped
# from this copy before filtering.
git for-each-ref --format='%(refname)' refs/heads | grep -vx 'refs/heads/main' | while read -r ref; do
git update-ref -d "${ref}"
done
quoted=""
for p in "${internal[@]}"; do