Skip to content

Commit

Permalink
Directly deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Jul 30, 2024
1 parent 80bab2a commit a91d066
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/rebuild-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Restore cache
id: cache
Expand Down Expand Up @@ -52,15 +55,13 @@ jobs:
--eval "(ql:quickload '(clip shasht pathname-utils) :silent T)" \
--load "compile.lisp" \
--eval '(promptfont-compiler::all)'
- name: GH Pages deploy
if: github.head_ref == null
run: |
git clone -q --branch=gh-pages https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git ~/gh-pages
cp $FILES ~/gh-pages/
git -C ~/gh-pages add $FILES
git -C ~/gh-pages commit -qm "CI index rebuild." || echo "Nothing to commit."
git -C ~/gh-pages push -q origin gh-pages
cp index.html index.css $OUTPUT/
env:
FILES: |
index.html
index.css
OUTPUT: ${{ format('{0}/gh-pages/', runner.temp) }}
- name: Upload Github Pages Artefact
uses: actions/[email protected]
with:
path: ${{ format('{0}/gh-pages/', runner.temp) }}
- name: Write to Github Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit a91d066

Please sign in to comment.