Skip to content

Commit

Permalink
Update the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Oct 11, 2023
1 parent b0a1f68 commit d20fd08
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/rebuild-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install sbcl
- name: Setup
run: |
sudo apt-get -qq update | true
git config --global user.name "CI"
git config --global user.email "[email protected]"
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
sbcl --load ~/quicklisp.lisp \
--eval '(quicklisp-quickstart:install)' \
--eval '(ql-util:without-prompting (ql:add-to-init-file))' \
--eval '(ql:quickload :shasht)' \
--eval '(ql:quickload :clip)' \
--quit
- uses: actions/checkout@v1
- name: Rebuild
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
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
env:
FILES: index.html glyphs.json chars.txt PromptFont.ttf PromptFont.otf PromptFont.css
FILES: LICENSE.txt README.md index.html glyphs.json chars.txt PromptFont.ttf PromptFont.otf PromptFont.css

0 comments on commit d20fd08

Please sign in to comment.