Skip to content

Commit

Permalink
Work on github action
Browse files Browse the repository at this point in the history
  • Loading branch information
npresseault committed May 7, 2024
1 parent 81bc2ea commit 4e157f4
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
pull_request: # Testing
branches:
- '**'
permissions:
contents: write
jobs:
Expand All @@ -14,15 +17,44 @@ jobs:
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- name: Setup java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs-material=="9.*"
- name: Build docs
run: ./buildDocs.sh

- name: Install mkdocs
run: pip install mkdocs-material

- name: Deploy mkdocs
run: mkdocs gh-deploy --force

0 comments on commit 4e157f4

Please sign in to comment.