Skip to content

Add Sonarqube GitHub action (#135) #90

Add Sonarqube GitHub action (#135)

Add Sonarqube GitHub action (#135) #90

Workflow file for this run

name: Build and deploy documentation
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: main
fetch-depth: 0
fetch-tags: true
- uses: ./.github/actions/ci-setup
with:
extras: docs
- name: Generate documentation
run: |
cd docs
make html-versioned
cd ..
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: docs/build_versioned
deploy-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
needs: build-docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0