From 3252b445a61475ff9b8b3bf1ba1e751385326618 Mon Sep 17 00:00:00 2001 From: Gabriele Labanca Date: Tue, 18 Jun 2024 13:03:59 +0200 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 9c23be6..07e5bba 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,31 +26,28 @@ jobs: - run: npm test - run: npm run build --if-present - run: npm run deploy - - uses: actions/upload-artifact@v4 + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 with: - name: webpages - path: './artifact' + source: ./artifact + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + deploy: - needs: build environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + needs: build steps: - - uses: actions/download-artifact@v4 - with: - name: webpages - path: './artifact' - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: './artifact' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 +