Skip to content

Commit

Permalink
feat: upload to oss
Browse files Browse the repository at this point in the history
  • Loading branch information
阮文涛 committed Oct 10, 2023
1 parent 7cbc866 commit bb9d293
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ jobs:
path: './.vitepress/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vitepress/dist
.vitepress/cache
node_modules
node_modules
dist
docs

0 comments on commit bb9d293

Please sign in to comment.