Skip to content

Update cmake_package_manager.cmake #33

Update cmake_package_manager.cmake

Update cmake_package_manager.cmake #33

Workflow file for this run

# Copyright 2021 CMakePP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Build and Deploy Documentation
on:
push:
branches:
- master
# Allows manual triggering with the "Run workflow" button
workflow_dispatch:
jobs:
Build-Documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get Python
uses: actions/setup-python@v1
with:
python-version: '3.9'
- name: Build Documentation
run: |
python3 -m venv virt_env
source virt_env/bin/activate
# Install docs requirements
pip3 install -r docs/requirements.txt
# Install CMinx
mkdir -p build
git clone https://github.com/CMakePP/CMinx.git build/cminx
pip install wheel
pip install build/cminx
# Build the API docs
./.github/workflows/scripts/build_api_docs.sh
# Build the full docs
cd docs
make html
deactivate
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html