diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb384e7..88439ed 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,20 +4,20 @@ on: push: branches: [main, master] -permissions: - contents: read - pages: write - id-token: write - jobs: deploy: runs-on: ubuntu-latest + + permissions: + contents: read + pages: write + id-token: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Prepare environment - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 22 @@ -36,9 +36,14 @@ jobs: printf -- "> **Note:** You accessed a link that returned a 404, probably by clicking one of the plugin links. You're supposed to copy the link address and add it into Vendetta.\n\n" >> dist/404.md cat README.md >> dist/404.md - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist - enable_jekyll: true + path: ./dist + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4