-
-
Notifications
You must be signed in to change notification settings - Fork 13
70 lines (69 loc) · 2.45 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Rebuild Index
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Restore cache
id: cache
uses: actions/cache@v3
with:
path: |
~/quicklisp
~/.wine
~/trial-deployment
~/.sbclrc
key: ${{ runner.os }}
restore-keys: ${{ runner.os }}
- name: Install packages
run: |
git config --global user.name "CI"
git config --global user.email "[email protected]"
sudo apt-get update
sudo apt-get -qq install wine curl fontforge imagemagick inkscape --no-install-recommends
- name: Install env
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 https://gitea.tymoon.eu/Shirakumo/trial-deployment.git ~/trial-deployment
curl -o ~/quicklisp.lisp https://beta.quicklisp.org/quicklisp.lisp
~/trial-deployment/sbcl-lin \
--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)' \
--eval '(ql:quickload :pathname-utils)' \
--quit
~/trial-deployment/sbcl-win \
--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)' \
--eval '(ql:quickload :pathname-utils)' \
--quit
- uses: actions/checkout@v2
- name: Rebuild
run: |
~/trial-deployment/sbcl-lin \
--noinform \
--disable-debugger \
--eval "(ql:quickload '(clip shasht pathname-utils) :silent T)" \
--load "compile.lisp" \
--eval '(promptfont-compiler::fonts)' \
--eval '(promptfont-compiler::web)' \
--quit
mkdir -p "$OUTPUT/"
cp index.html index.css promptfont.ttf "$OUTPUT/"
env:
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