From 09e65cd4be76dd6f678bef661d87052947240db5 Mon Sep 17 00:00:00 2001 From: Simon Gravelle Date: Wed, 21 Aug 2024 15:12:25 +0200 Subject: [PATCH] added page github --- .github/workflows/gh-pages.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..a23ca6e --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,42 @@ +name: Deploy GitHub Pages + +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-20.04 + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v3 + with: + context: . + submodules: true + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v2.2.1 + with: + context: . + python-version: 3.9 + - name: Install sphinx + run: | + pip install sphinx + pip install furo + - name: Build + run: | + cd docs/ + make clean + make html + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + context: . + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/build/html/