From 301de556cb2d631ea3230691e1e11c8ea16bf078 Mon Sep 17 00:00:00 2001 From: Jasmin Date: Thu, 27 Feb 2025 16:22:31 +0100 Subject: [PATCH] 4th try --- .github/workflows/static.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 87494a9..7fd9601 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -21,15 +21,12 @@ concurrency: cancel-in-progress: true jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + # Build job + build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - - name: Set up Node.js uses: actions/setup-node@v3 with: @@ -40,14 +37,21 @@ jobs: run: yarn install --frozen-lockfile --non-interactive - name: Build run: yarn run build - - name: Setup Pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-pages-artifact@v2 with: - name: github-pages - path: build + path: ./build + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2