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 +