Publish with git-pages-cli, the docker action does not run on the k8s runner
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8804d6873c
commit
5f5b9f139d
1 changed files with 8 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue