From 3b14e5ab800b04500d2bcc6cbbb5426dee1d96e4 Mon Sep 17 00:00:00 2001 From: ihavecoke Date: Wed, 19 Jun 2024 10:05:09 +0800 Subject: [PATCH] Use force args to upload assets to oss --- .github/workflows/canary.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 255df63be..047f4a296 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -39,5 +39,5 @@ jobs: - name: upload canary dist to oss run: | - ${{github.workspace}}/ossutil cp dist/ oss://lb-assets/github/canary/longportapp.com/learn/wiki/ -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 dist/ oss://lb-assets/github/canary/longportapp.com/learn/wiki/ -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 + ${{github.workspace}}/ossutil cp dist/ oss://lb-assets/github/canary/longportapp.com/learn/wiki/ -f -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 dist/ oss://lb-assets/github/canary/longportapp.com/learn/wiki/ -f -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c0d5f8b5..0a4d42773 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,5 +37,5 @@ jobs: - name: upload canary dist to oss run: | - ${{github.workspace}}/ossutil cp dist/ oss://lb-assets/github/release/longportapp.com/learn/wiki/ -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 dist/ oss://lb-assets/github/release/longportapp.com/learn/wiki/ -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 + ${{github.workspace}}/ossutil cp dist/ oss://lb-assets/github/release/longportapp.com/learn/wiki/ -f -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 dist/ oss://lb-assets/github/release/longportapp.com/learn/wiki/ -f -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