Skip to content

Finish tutorial

Finish tutorial #32

Workflow file for this run

name: build-doc
on:
push:
env:
STACK: '/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh'
OS: 'ubuntu22'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Start container
run: |
docker run -it --name CI_container \
-v ${GITHUB_WORKSPACE}:/Package \
-v /cvmfs:/cvmfs:shared \
-d ghcr.io/key4hep/key4hep-images/${{ env.OS }}:latest \
/bin/bash
- name: CMake Configure
run: |
docker exec CI_container /bin/bash -c 'cd Package; \
mkdir -p build install; \
source ${{ env.STACK }}; \
cd build; \
cmake -DCMAKE_INSTALL_PREFIX=../install ..'
- name: Generate doxygen documentation
run: |
docker exec CI_container /bin/bash -c 'cd Package; \
source ${{ env.STACK }}; \
cd build; \
make doc'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doxygen/html
destination_dir: docs/