From 9673d46b53715462e755a6f15173ff272aab50a9 Mon Sep 17 00:00:00 2001 From: Zuoling Rong Date: Sat, 1 Feb 2025 16:02:13 +0800 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d55080e..a4aa9b4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,27 +9,27 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '16' - name: Install dependencies - run: | - npm init -y - npm install js-yaml + run: npm install - name: Generate site run: node generator.js - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@4.1.4 + uses: JamesIves/github-pages-deploy-action@v4 with: - branch: gh-pages folder: . + branch: gh-pages clean: true \ No newline at end of file