diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index fa050e8..e208708 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,4 +33,10 @@ jobs: path: './.vitepress/dist' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2 + - name: Download ossutils zip + run: | + wget https://github.com/aliyun/ossutil/releases/download/v.1.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/release/longbridge-pro-docs/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/release/longbridge-pro-docs/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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5a922ac..ce1e011 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .vitepress/dist .vitepress/cache -node_modules \ No newline at end of file +node_modules +dist +docs \ No newline at end of file