From 38e524737f391bef794a24cbec68904b23c3722c Mon Sep 17 00:00:00 2001 From: ihavecoke Date: Tue, 31 Oct 2023 14:07:44 +0800 Subject: [PATCH] Update deploy canary action script --- .github/workflows/canary.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index a3032772..14d9bf43 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -12,17 +12,6 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 1 - - - name: Download ossutils zip - run: | - wget https://github.com/aliyun/ossutil/releases/download/v1.7.17/ossutil-v1.7.17-linux-amd64.zip - unzip ossutil-v1.7.17-linux-amd64.zip && cp ./ossutil-v1.7.17-linux-amd64/ossutil ${{github.workspace}}/ && chmod +x ${{github.workspace}}/ossutil - - - name: Test ossutil cli - run: | - ${{github.workspace}}/ossutil --version - - - uses: actions/checkout@v3 - name: Exporting env: FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }} @@ -39,8 +28,9 @@ jobs: bun autocorrect --fix docs/ bun translate bun run build - - name: upload canary dist to oss run: | + wget https://github.com/aliyun/ossutil/releases/download/v1.7.17/ossutil-v1.7.17-linux-amd64.zip + unzip ossutil-v1.7.17-linux-amd64.zip && cp ./ossutil-v1.7.17-linux-amd64/ossutil ${{github.workspace}}/ && chmod +x ${{github.workspace}}/ossutil ${{github.workspace}}/ossutil cp .vitepress/dist/ oss://lb-assets/github/canary/longbridgewhale.com/whale-docs/ -u -r -j 10 -e oss-cn-hangzhou.aliyuncs.com -i ${{ secrets.FE_LB_ASSET_ACCESS_KEY_ID }} -k ${{ secrets.FE_LB_ASSET_ACCESS_KEY_SECRET }} --exclude "*.html" --meta=Cache-Control:max-age=31536000 ${{github.workspace}}/ossutil cp .vitepress/dist/ oss://lb-assets/github/canary/longbridgewhale.com/whale-docs/ -u -r -j 10 -e oss-cn-hangzhou.aliyuncs.com -i ${{ secrets.FE_LB_ASSET_ACCESS_KEY_ID }} -k ${{ secrets.FE_LB_ASSET_ACCESS_KEY_SECRET }} --include "*.html" --meta=Cache-Control:no-cache