-
-
Notifications
You must be signed in to change notification settings - Fork 13
34 lines (30 loc) · 1.17 KB
/
rebuild-index.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Rebuild Index
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install sbcl
run: |
sudo apt-get -qq update | true
sudo apt-get -qq install sbcl curl
- name: Install Quicklisp
run: |
curl -o ~/quicklisp.lisp https://beta.quicklisp.org/quicklisp.lisp
sbcl --load ~/quicklisp.lisp --eval '(quicklisp-quickstart:install)' --eval '(ql-util:without-prompting (ql:add-to-init-file))' --quit
- name: Rebuild the index
run: |
./compile.lisp
- name: GH Pages deploy
if: github.head_ref == null
run: |
git config --global user.name "CI"
git config --global user.email "[email protected]"
git clone --quiet --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
env:
FILES: index.html glyphs.json chars.txt PromptFont.ttf PromptFont.otf PromptFont.css