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