-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.59 KB
/
main.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
71
72
# Taken gratefully from elken.dev
name: Deploy to https://blackmoonkite.cc
on:
push:
paths:
- resources/**
- content/**
- src/**
branches:
"main"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
environment:
name: "Build Powerpack"
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🔧 Install java
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "11.0.20+8"
- name: 🔧 Install clojure & bb
uses: DeLaGuardo/setup-clojure@master
with:
cli: "1.11.1.1403"
bb: "latest"
- name: 🏗 Install deps
run: |
yarn
- name: 📦 Cache deps
uses: actions/[email protected]
with:
path: |
~/.m2
~/.gitlibs
~/.deps.clj
node_modules
key: ${{ runner.os }}-dev-${{ github.sha }}
restore-keys: |
${{ runner.os }}-dev-
- name: Clear output folder to prevent errors
run: rm -r ./target/powerpack
- name: 🏗 Build Site
run: clojure -X:build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './target/powerpack'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4