Skip to content

Merge pull request #1746 from DGtal-team/uninstall #190

Merge pull request #1746 from DGtal-team/uninstall

Merge pull request #1746 from DGtal-team/uninstall #190

name: Nightly-build documentation and deploy
on:
push:
branches: [ master ]
jobs:
# This workflow contains a single job called "build"
GenerateDocOnMaster:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up
run: |
sudo apt update
sudo apt-get install libboost-dev graphviz texlive-base doxygen
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Building pages
run: |
mkdir build
cd build
cmake ..
wget --no-check-certificate -O "${{runner.workspace}}/DGtal/build/DGtalTools-tagfile" http://dgtal.org/doc/tags/DGtalTools-tagfile;
make doc > buildDoc.log
- name: Checking doc
run: |
pwd
export BUILD_DIR=${{runner.workspace}}/DGtal/build
export SRC_DIR=${{runner.workspace}}/DGtal/
.github/workflows/checkDoxygenDocumentation.sh
#&& .github/workflows/check_src_file_tag.sh
- name: Preparing deploy
run: |
git clone --depth 2 https://github.com/DGtal-team/doc-nightly.git
ls build/
pwd
du -hs build/html
cd build/html
cp -r * ../../doc-nightly/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
token: ${{ secrets.DEPLOYACTION }}
repository-name: DGtal-team/doc-nightly
folder: doc-nightly
branch: master
single-commit: true
clean: true