From 18846db7835c537330e2e9dac40744f0b3b8c338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Oliver=20=22Janonard=22=20Opdenh=C3=B6vel?= Date: Sat, 31 Aug 2024 10:34:45 +0200 Subject: [PATCH] Reverting, and granting correct permissions --- .github/workflows/doxygen.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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 +