Gitea: Try create release again
Some checks failed
Build Packages / build:rpm (rocky9_nocuda) (push) Has been skipped
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Has been skipped
Build Packages / build:rpm (rocky8_nocuda) (push) Has been skipped
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Has been skipped
Build Packages / build:rpm (rocky9) (push) Has been skipped
Build Packages / build:rpm (ubuntu2204) (push) Has been skipped
Build Packages / build:rpm (ubuntu2404) (push) Has been skipped
Build Packages / Unit tests (push) Has been skipped
Build Packages / Generate python client (push) Successful in 18s
Build Packages / Create release (push) Failing after 36s
Build Packages / Build documentation (push) Successful in 40s

This commit is contained in:
2025-09-30 14:22:34 +02:00
parent 49cf508b78
commit 4fc4e13aa1

View File

@@ -148,19 +148,22 @@ jobs:
with:
lfs: false
fetch-depth: 0
- name: Configure LFS auth for gitea.psi.ch
- name: Configure auth and fetch LFS
shell: bash
env:
GITEA_TOKEN: ${{ secrets.PIP_REPOSITORY_API_TOKEN }}
run: |
umask 077
cat > ~/.netrc <<EOF
machine gitea.psi.ch
login __token__
password ${GITEA_TOKEN}
EOF
set -euo pipefail
# Add Basic Authorization header for gitea.psi.ch
BASIC_AUTH="$(printf "__token__:%s" "${GITEA_TOKEN}" | base64 -w0 2>/dev/null || printf "__token__:%s" "${GITEA_TOKEN}" | base64)"
git config http.https://gitea.psi.ch/.extraheader "Authorization: Basic ${BASIC_AUTH}"
# Initialize and fetch LFS with credentials
git lfs install --local
git lfs fetch origin "$(git rev-parse --abbrev-ref HEAD || echo HEAD)"
# Fetch only the current ref to reduce surface; fallback to all if needed
CURRENT_REF="$(git rev-parse --abbrev-ref HEAD || echo HEAD)"
git lfs fetch origin "${CURRENT_REF}" || git lfs fetch --all
git lfs checkout
- name: Create release
env: