Skip to content

Commit 9eb4b7b

Browse files
committed
Added action to build and commit docs.
1 parent 8247a2e commit 9eb4b7b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build_docs.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build 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: Execute doc build
36+
run: |
37+
clj -X:docs
38+
39+
- name: Commit and push
40+
run: |
41+
git config --global user.name clojure-build
42+
git config --global user.email "[email protected]"
43+
git add -u -v
44+
git commit -m "Action doc commit"
45+
git push origin master

0 commit comments

Comments
 (0)