Skip to content

Commit

Permalink
Update deploy canary action script
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Oct 31, 2023
1 parent 8073913 commit 38e5247
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 38e5247

Please sign in to comment.