From 7dd989a97d400d5b60f0104abd8a58a95aabc602 Mon Sep 17 00:00:00 2001 From: Glen Cheney Date: Fri, 8 Nov 2024 12:57:43 -0500 Subject: [PATCH] Fix gh-pages action? --- .github/workflows/deploy.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8f277b..10a635e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,12 +14,19 @@ jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest + strategy: + matrix: + node-version: [22.x] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Enable Corepack + run: corepack enable + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 22.x - cache: yarn + node-version: ${{ matrix.node-version }} + cache: 'yarn' - name: Install dependencies run: yarn install --frozen-lockfile @@ -29,7 +36,7 @@ jobs: # Popular action to deploy to GitHub Pages: # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} # Build output to publish to the `gh-pages` branch: