-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (73 loc) · 1.85 KB
/
Copy pathcontinuous-deployment.yaml
File metadata and controls
93 lines (73 loc) · 1.85 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Continuous Deployment
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Cache deps.edn dependencies
uses: actions/cache@v6
with:
path: ~/.m2/repository
key: clj-${{ runner.os }}-${{ hashFiles('**/deps.edn') }}
restore-keys: clj-${{ runner.os }}-
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 25
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@13.6.1
with:
cli: latest
bb: latest
- name: Install Chrome
uses: browser-actions/setup-chrome@v2
with:
chrome-version: 'stable'
install-chromedriver: true
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 24
- name: Build
run: bb build
- name: Lint
run: bb lint
- name: Test CLJC
run: bin/kaocha unit-cljc
# - name: Test CLJS
# run: xvfb-run --auto-servernum bin/cljs-test
- name: Upload artifact
id: deployment
uses: actions/upload-pages-artifact@v5
with:
path: 'static-site'
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Configure Pages
uses: actions/configure-pages@v6
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5