From 5f09b7c33486afe229f50db5f0994ecd701cfd67 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Thu, 22 Feb 2024 15:44:08 +0100 Subject: [PATCH] CI: Add documentation deploy step --- .github/workflows/ci_cd.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 26503c146..45727cb2d 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -85,17 +85,27 @@ jobs: path: doc/_build/html retention-days: 7 - - name: Create PDF documentation - run: | - .venv\Scripts\Activate.ps1 - . .\doc\make.bat pdf - - - name: Upload PDF documentation artifact - uses: actions/upload-artifact@v3 + # - name: Create PDF documentation + # run: | + # .venv\Scripts\Activate.ps1 + # . .\doc\make.bat pdf + + # - name: Upload PDF documentation artifact + # uses: actions/upload-artifact@v3 + # with: + # name: documentation-pdf + # path: doc/_build/latex + # retention-days: 7 + + - name: Deploy + if: contains(github.ref, 'refs/heads/main') + uses: JamesIves/github-pages-deploy-action@v4.5.0 with: - name: documentation-pdf - path: doc/_build/pdf - retention-days: 7 + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + folder: doc/_build/html + clean: true + single-commit: true release: if: github.event_name == 'push' && contains(github.ref, 'refs/tags') @@ -122,3 +132,6 @@ jobs: files: | ./documentation-html.zip ./documentation-pdf/*.pdf + + +