Skip to content

Commit 8c695ad

Browse files
committed
Add GitHub action to build codox docs
1 parent 330d0fa commit 8c695ad

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build Codox Docs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- name: Set up Java
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: 8
16+
distribution: 'temurin'
17+
18+
- name: Set up Clojure
19+
uses: DeLaGuardo/[email protected]
20+
with:
21+
cli: 'latest'
22+
23+
- name: Cache clojure dependencies
24+
uses: actions/cache@v3
25+
with:
26+
path: |
27+
~/.m2/repository
28+
~/.gitlibs
29+
key: cljdeps-${{ hashFiles('deps.edn') }}
30+
restore-keys: cljdeps-
31+
32+
- name: Clone the repo
33+
uses: actions/checkout@v4
34+
35+
- name: Install rlwrap
36+
run: sudo apt-get install -y rlwrap
37+
38+
- name: Execute doc build
39+
run: |
40+
clj -X:docs
41+
42+
- name: Commit and push
43+
run: |
44+
git config --global user.name clojure-build
45+
git config --global user.email "[email protected]"
46+
git add -u -v
47+
git commit -m "Action doc commit"
48+
git push origin master

0 commit comments

Comments
 (0)