Skip to content

Commit

Permalink
Added action to build and commit docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodCTaylor committed Jan 23, 2025
1 parent 8247a2e commit 9eb4b7b
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build 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/setup-clojure@11.0
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: Execute doc build
run: |
clj -X:docs
- name: Commit and push
run: |
git config --global user.name clojure-build
git config --global user.email "clojure-build@users.noreply.github.com"
git add -u -v
git commit -m "Action doc commit"
git push origin master

0 comments on commit 9eb4b7b

Please sign in to comment.