Skip to content

Add documentation version switcher #14

Add documentation version switcher

Add documentation version switcher #14

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Download theme
run: doc/download-theme.sh
- uses: mattnotmitt/doxygen-action@edge
- name: Deploy version switcher
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: upa-url/docs
destination_dir: docs/common
publish_branch: main
publish_dir: ./doc/common
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: upa-url/docs
destination_dir: docs/main
publish_branch: main
publish_dir: ./doc/html