Commitc13a4bdaRecorded5 May 2026Repositorysigil-site
Fix Codeberg Pages publish authentication
Changed
publish.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)Diff
publish.shmodified
@@ -15,6 +15,7 @@ set -euo pipefail
15
# Environment: 16
# SIGIL Path to sigil binary (default: ~/.sigil/bin/sigil) 17
# PARENT_DIR Parent directory where sibling repos live (default: ..)+18
# CODEBERG_USER Codeberg username for HTTPS push auth (default: daviwil) 19
# CODEBERG_TOKEN When set, uses HTTPS for git operations instead of SSH 20
# 21
# This script:@@ -75,7 +76,8 @@ COMBINED_LIB="$SCRIPT_DIR/build/combined-lib"
76
# Use HTTPS with token auth when CODEBERG_TOKEN is set (e.g. in CI), 77
# otherwise use SSH (local development) 78
if [[ -n "${CODEBERG_TOKEN:-}" ]]; then−78
PAGES_REPO_URL="https://token:${CODEBERG_TOKEN}@codeberg.org/sigil/sigil.git"+79
CODEBERG_USER="${CODEBERG_USER:-daviwil}"+80
PAGES_REPO_URL="https://${CODEBERG_USER}:${CODEBERG_TOKEN}@codeberg.org/sigil/sigil.git" 81
else 82
PAGES_REPO_URL="[email protected]:sigil/sigil.git" 83
fi