-
-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (34 loc) · 962 Bytes
/
gh-pages.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
name: GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: |
.cpcache
.shadow-cljs
~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/deps.edn') }}
restore-keys: ${{ runner.os }}-m2
- name: Checkout
uses: actions/checkout@v3
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
bb: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build static site
run: bb build-static
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public/build