diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d10609bb6..99b1515d2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -9,24 +9,23 @@ jobs: pages: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 - with: - node-version: '16' - - name: Cache NPM dependencies - uses: actions/cache@v2 + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 with: - path: node_modules - key: ${{ runner.OS }}-npm-cache - restore-keys: | - ${{ runner.OS }}-npm-cache + node-version: '20' + cache: 'npm' + - name: Install Dependencies run: npm install + - name: Build run: npm run build + - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public \ No newline at end of file + publish_dir: ./public