From 9144f356197e2d83bbc3bc905a8dad9a359ef4e1 Mon Sep 17 00:00:00 2001 From: Shaun Britz Date: Thu, 20 Jun 2024 15:00:33 +0200 Subject: [PATCH] Added Inus deployment script --- .github/workflows/pages.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 5fa776a..f497d39 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -49,14 +49,15 @@ jobs: timeout-minutes: 5 deploy: + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./_book \ No newline at end of file + id: deployment + uses: actions/deploy-pages@v3 \ No newline at end of file