Publish with git-pages-cli, the docker action does not run on the k8s runner
All checks were successful
ci / pages (push) Successful in 1m4s
ci / build (push) Successful in 4m47s
ci / docker (push) Successful in 0s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jonas Leder 2026-11-18 15:16:31 +01:00
commit 5f5b9f139d

View file

@ -24,9 +24,11 @@ jobs:
mkdir _site
ruby -r yaml -r json -e 'puts YAML.load($stdin.read).to_json' < config.yml > _site/config.json
cp index.html script.js style.css _site/
- uses: https://codeberg.org/git-pages/action@v2.2.0
with:
site: https://jonasled.jonasled.dev/package-mirror/
source: _site/
token: ${{ forgejo.token }}
comment: ${{ forgejo.sha }}
# the git-pages action is a docker action, which the Kubernetes runner cannot run: use the CLI directly
- name: Publish to git-pages
env:
GIT_PAGES_TOKEN: ${{ github.token }}
run: |
curl -fsSL -o git-pages-cli https://codeberg.org/git-pages/git-pages-cli/releases/download/v1.13.1/git-pages-cli.linux-amd64
chmod +x git-pages-cli
./git-pages-cli https://jonasled.jonasled.dev/package-mirror/ --upload-dir _site