From 210ca99d2ffc19ce7bd8e071d48224c91fd6fa57 Mon Sep 17 00:00:00 2001 From: notify Date: Mon, 21 Oct 2024 14:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=B5=8B=E8=AF=95doxygen=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sphinx.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index af3dc884..eb82e7ba 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -6,7 +6,7 @@ on: branches: [master] jobs: - pages: + build: runs-on: ubuntu-20.04 environment: name: github-pages @@ -15,15 +15,33 @@ jobs: pages: write id-token: write steps: + - name: Checkout Git Repo + uses: actions/checkout@v3 + - id: build uses: mattnotmitt/doxygen-action@1.9.8 with: - working-directory: './docs/' - doxyfile-path: 'docs/Doxyfile' + working-directory: 'docs/' + doxyfile-path: 'Doxyfile' - - id: deploy - uses: peaceiris/actions-gh-pages@v4 + - name: Upload static files as artifact + id: deployment + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.MY_TOKEN }} - publish_dir: './docs/build/html' + path: docs/build/html + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +