From c793d7632912339b3fd9c6543655c7031bcae6e9 Mon Sep 17 00:00:00 2001 From: WindWaving <13833799573@163.com> Date: Thu, 21 Mar 2024 11:33:12 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09590e55..279af23b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,6 @@ on: push: branches: ["gh-pages"] - # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read @@ -34,18 +33,18 @@ jobs: - name: Build Website run: npm run build # https://github.com/yizhoumo/setup-ossutil - - uses: manyuanrong/setup-ossutil@v2.0 - with: - endpoint: "oss-cn-hangzhou.aliyuncs.com" - access-key-id: ${{secrets.ACCESS_KEY_ID}} - access-key-secret: ${{secrets.ACCESS_KEY_SECRET}} - - run: ossutil cp -rf dist oss://higress-website-cn-hangzhou/ - # 部署到 github Page - # - name: Upload artifact - # uses: actions/upload-pages-artifact@v2 + # - uses: manyuanrong/setup-ossutil@v2.0 # with: - # # Upload entire repository - # path: './dist' - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v2 \ No newline at end of file + # endpoint: "oss-cn-hangzhou.aliyuncs.com" + # access-key-id: ${{secrets.ACCESS_KEY_ID}} + # access-key-secret: ${{secrets.ACCESS_KEY_SECRET}} + # - run: ossutil cp -rf dist oss://higress-website-cn-hangzhou/ + # 部署到 github Page + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: "./dist" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2