Fix CI: use upload-artifact@v3, hardcode public Gitea hostname
All checks were successful
CI / Build firmware (push) Successful in 38s
CI / Check formatting (push) Successful in 13s
CI / Static analysis (push) Successful in 12s
CI / Build documentation (push) Successful in 14s

upload-artifact@v4 is not supported on self-hosted Gitea (GHES).
Downgrade to v3 which works with Gitea Actions.

GITHUB_SERVER_URL resolves to the internal Docker address (http://gitea:3000)
instead of the public URL, making the gh-pages push URL malformed.
Hardcode gitea.archvium.eu as the push target.
This commit is contained in:
Krzysztof Cieślik
2026-05-21 23:24:15 +02:00
parent 9c0e280fab
commit dca80c7821

View File

@@ -38,7 +38,7 @@ jobs:
echo '```' >> "$GITHUB_STEP_SUMMARY" echo '```' >> "$GITHUB_STEP_SUMMARY"
- name: Upload firmware artifacts - name: Upload firmware artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: firmware-${{ github.sha }} name: firmware-${{ github.sha }}
path: | path: |
@@ -110,7 +110,6 @@ jobs:
git config user.email "ci@localhost" git config user.email "ci@localhost"
git add -A git add -A
git commit -m "docs: ${GITHUB_SHA}" git commit -m "docs: ${GITHUB_SHA}"
SERVER="${GITHUB_SERVER_URL#https://}"
git push --force \ git push --force \
"https://x-token:${GITHUB_TOKEN}@${SERVER}/${GITHUB_REPOSITORY}.git" \ "https://x-token:${GITHUB_TOKEN}@gitea.archvium.eu/${GITHUB_REPOSITORY}.git" \
HEAD:gh-pages HEAD:gh-pages