From 1a05ce612edc638b4843e04c6910697feee09557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9la=20Ben=20Khalfallah?= Date: Sun, 10 Nov 2024 00:16:49 +0100 Subject: [PATCH] Update static.yml --- .github/workflows/static.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index b7321fb..ab1939b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -10,8 +10,7 @@ permissions: 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. +# Allow only one concurrent deployment concurrency: group: "pages" cancel-in-progress: false @@ -37,8 +36,14 @@ jobs: - name: Documentation Update run: pnpm update-docs + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload only the docs folder + path: './docs' - # Deploy documentation on github-pages + # Deploy documentation on GitHub Pages deploy: needs: build environment: @@ -46,15 +51,9 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: './docs' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4