Skip to content

[pre-commit.ci] pre-commit autoupdate #286

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #286

Workflow file for this run

---
name: docs
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash -l {0}
env:
CMAKE_VERSION: 3.23.x
CMAKE_BUILD_TYPE: Release
CMAKE_BUILD_PREFIX: ./build
CMAKE_INSTALL_PREFIX: ./install
jobs:
docs:
runs-on: ubuntu-latest
name: πŸ“š Docs
steps:
- name: 🧰 Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: 🟨 Install packages
run: sudo apt-get install dia mscgen inkscape texlive-latex-recommended texlive-latex-extra
- name: 🐍 Install Conda environment
uses: mamba-org/provision-with-micromamba@v16
with:
environment-file: .github/workflows/micromamba/docs.yml
- name: 🟨 Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: ${{env.CMAKE_VERSION}}
github-api-token: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ”§ Configure
run: cmake -S . -B ${{ env.CMAKE_BUILD_PREFIX }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DBUILD_DOCS=ON -DBUILD_ROOT_INTERFACE=OFF -DCMAKE_PREFIX_PATH="~/micromamba" -DCMAKE_INSTALL_PREFIX=${{ env.CMAKE_INSTALL_PREFIX }}
- name: βš™οΈ Build
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel 2 --target all docs
- name: πŸ“₯ Install
run: cmake --install ${{ env.CMAKE_BUILD_PREFIX }} --prefix ${{ env.CMAKE_INSTALL_PREFIX }} --strip && mv ${{ env.CMAKE_INSTALL_PREFIX }}/share/doc/streamout/pdf/streamout_Manual.pdf ${{ env.CMAKE_INSTALL_PREFIX }}/share/doc/streamout/html/streamout_Manual.pdf
- name: πŸŽ‰ Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.ACCESS_PUBLIC_REPOS }}
repository-name: SDHCAL/SDHCAL.github.io
branch: main
folder: ${{ env.CMAKE_INSTALL_PREFIX }}/share/doc/streamout/html/
target-folder: assets/projects/streamout