WIP 332 Use "latest" DTC version #38
Workflow file for this run
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
name: GitHub Pages | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
inputs: | |
perform_step: | |
type: boolean | |
description: 'Publish GH Page' | |
default: false | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
env: | |
DTC_HEADLESS: true | |
steps: | |
- name: Install dot (Graphviz) | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y graphviz | |
- name: Cache Gradle packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}" | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Cache .doctoolchain | |
uses: actions/cache@v2 | |
with: | |
path: ~/.doctoolchain | |
key: "${{ runner.os }}-doctoolchain-${{ hashFiles('**/lockfiles') }}" | |
restore-keys: ${{ runner.os }}-doctoolchain | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
# SonarQube requires JDK 17 or higher | |
java-version: 17 | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Execute Gradle build | |
run: ./gradlew clean check integrationTest --scan --stacktrace | |
- name: Generate Pages | |
run: ./generate-pages | |
- name: Upload Artifacts | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
name: github-pages | |
path: public | |
retention-days: 7 | |
publish: | |
runs-on: ubuntu-latest | |
needs: pages | |
if: ${{ github.event.inputs.perform_step }} | |
steps: | |
- name: Deploy Pages | |
uses: actions/deploy-pages@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |