From f9c9fbaa5c9e3c00c62f9d884808c753de61aa55 Mon Sep 17 00:00:00 2001 From: Mijndert Stuij Date: Fri, 22 Mar 2024 20:19:40 +0100 Subject: [PATCH] test gh action --- .github/workflows/deploy.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2fa99a2..2513ca8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Build & Deploy +name: Deploy website on: push: @@ -16,21 +16,20 @@ concurrency: jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js current uses: actions/setup-node@v4 with: node-version: 21 cache: 'npm' - - name: Install packages - run: npm ci - - name: Run npm build - run: DEBUG=* npx eleventy - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - name: Install dependencies & build + run: | + npm ci + npx eleventy + - name: Deploy + uses: peaceiris/actions-gh-pages@v3.9.3 with: - path: ./dist - - name: Deploy to gh-pages - uses: actions/deploy-pages@v4 \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: dist + publish_branch: gh-pages