From 9666b9cb3a2ba2ef59cb01e5e12b245b6cf38b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Mon, 30 Dec 2024 21:42:53 +0100 Subject: [PATCH] Update --- .github/workflows/mkdocs.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index decfdc2..88b42e6 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -9,8 +9,6 @@ on: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read - pages: write - id-token: write # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. @@ -19,11 +17,8 @@ concurrency: cancel-in-progress: false jobs: - deploy: + build: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout uses: actions/checkout@v4 @@ -40,9 +35,20 @@ jobs: - name: Build with mkdocs run: mkdocs build - name: Upload artifact + id: deployment uses: actions/upload-artifact@v4 with: name: github-pages - path: ./site + path: ./site/ + deploy: + needs: build + permissions: + pages: write + id-token: write + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} - name: Deploy to GitHub Pages + id: deployment uses: actions/deploy-pages@v4