From 5682e52cff3ce2c2ac7ad41491b5a7a19b31be03 Mon Sep 17 00:00:00 2001 From: ryanycw Date: Thu, 12 Jun 2025 00:18:52 +0800 Subject: [PATCH] chore: update GitHub Actions workflow for gh-pages - Standardized branch name formatting - Updated actions/checkout to v4 - Updated actions/configure-pages to v5 - Changed Rust toolchain action to dtolnay/rust-toolchain@stable - Updated actions/upload-pages-artifact to v3 - Updated actions/deploy-pages to v4 --- .github/workflows/gh-pages.yaml | 37 +++++++++++++++------------------ 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 816e4c2..51b0f31 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -2,7 +2,7 @@ name: gh-pages on: push: - branches: [ main ] + branches: [main] workflow_dispatch: permissions: @@ -11,7 +11,7 @@ permissions: id-token: write concurrency: - group: "pages" + group: 'pages' cancel-in-progress: false jobs: @@ -22,26 +22,23 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v5 - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - name: Install Rust + uses: dtolnay/rust-toolchain@stable - - name: Run make - run: make + - name: Run make + run: make - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: 'build' + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'build' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4