From 9da5df60f2c0639a1922fec98d9d07bece523cbb Mon Sep 17 00:00:00 2001 From: MKStoler1024 <158786854+MKStoler1024@users.noreply.github.com> Date: Fri, 31 Jan 2025 17:57:27 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=8B=E8=BD=BD=E5=B7=A5=E4=BB=B6=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 3a0e172..ca2c621 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,4 +1,3 @@ - name: 部署文档 on: @@ -25,7 +24,6 @@ jobs: with: version: 9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1 - - name: 设置 Node.js uses: actions/setup-node@v4 with: @@ -66,22 +64,22 @@ jobs: if-no-files-found: error deploy: - # Add a dependency to the build job needs: build - - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - - # Deploy to the github-pages environment + pages: write + id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - - # Specify runner + deployment step runs-on: ubuntu-latest steps: + - name: 下载工件 + uses: actions/download-artifact@v4 + with: + name: github-pages + path: ${{ runner.temp }} - name: 部署到 GitHub Pages id: deployment - uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action \ No newline at end of file + uses: actions/deploy-pages@v2 + with: + artifact_path: ${{ runner.temp }}/artifact.tar \ No newline at end of file