-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub action to build codox docs
- Loading branch information
1 parent
330d0fa
commit 8c695ad
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build Codox Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 8 | ||
distribution: 'temurin' | ||
|
||
- name: Set up Clojure | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
cli: 'latest' | ||
|
||
- name: Cache clojure dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
~/.gitlibs | ||
key: cljdeps-${{ hashFiles('deps.edn') }} | ||
restore-keys: cljdeps- | ||
|
||
- name: Clone the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install rlwrap | ||
run: sudo apt-get install -y rlwrap | ||
|
||
- name: Execute doc build | ||
run: | | ||
clj -X:docs | ||
- name: Commit and push | ||
run: | | ||
git config --global user.name clojure-build | ||
git config --global user.email "[email protected]" | ||
git add -u -v | ||
git commit -m "Action doc commit" | ||
git push origin master |