-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |