Skip to content

Excavator: Format Java files (#30) #26

Excavator: Format Java files (#30)

Excavator: Format Java files (#30) #26

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- develop
- main
tags:
- '*'
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history needed for git-version plugin
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Sphinx dependencies
run: |
pip install -r docs/requirements.txt
- name: Generate version file from git tags
run: |
./gradlew generateDocsVersion
- name: Build Sphinx documentation
working-directory: docs/source
run: |
sphinx-build -b html . _build/html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/source/_build/html
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4