diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index cb5b7ca..5b231cb 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -12,15 +12,27 @@ on: jobs: build: runs-on: ubuntu-latest + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source steps: - uses: actions/checkout@v4 - name: Doxygen Build uses: mattnotmitt/doxygen-action@v1.9.8 - - - name: Deploy - uses: peaceiris/actions-gh-pages@v4 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: /github/workspace/StencilStream/doxygen/html/ + path: doxygen/html/ + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +