From 361ff5acc840382c2d02679dc25ca3576845514d Mon Sep 17 00:00:00 2001 From: "NoGeek.cn" <1934849492@qq.com> Date: Fri, 14 Feb 2025 14:03:21 +0800 Subject: [PATCH] Update jekyll-build-pages.yaml --- .github/workflows/jekyll-build-pages.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/jekyll-build-pages.yaml b/.github/workflows/jekyll-build-pages.yaml index 9e902c7..a152c74 100644 --- a/.github/workflows/jekyll-build-pages.yaml +++ b/.github/workflows/jekyll-build-pages.yaml @@ -19,14 +19,7 @@ jobs: uses: actions/jekyll-build-pages@v1 - name: Upload artifact uses: actions/upload-pages-artifact@v3 - deploy: - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 -# https://github.com/marketplace/actions/aliyun-oss-website-action + # https://github.com/marketplace/actions/aliyun-oss-website-action - name: upload files to OSS uses: fangbinwei/aliyun-oss-website-action@v1 with: @@ -34,7 +27,14 @@ jobs: accessKeySecret: ${{ secrets.ACCESS_KEY_SECRET }} bucket: "notgeek-gitpage" endpoint: "oss-cn-hangzhou.aliyuncs.com" - folder: "./_site" + folder: "_site/" + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}