Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperIceCN authored Mar 10, 2022
1 parent 1d5a816 commit 07f1c53
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy static to Tencent CloudBase
id: deployStatic
uses: TencentCloudBase/[email protected]
- name: Setup node
uses: actions/setup-node@v1
with:
secretId: ${{ secrets.SECRET_ID }}
secretKey: ${{ secrets.SECRET_KEY }}
envId: ${{ secrets.ENV_ID }}
staticSrcPath: ./
staticIgnore: .git,.github,node_modules,oldversions,./oldversions,mdui,./mdui,libs,./libs,./js/demos,./js/SoftKey,./js/tests,./js/core,./js/media,./js/generators/python,./js/generators/javascript,./js/generators/dart,./js/generators/lua,./js/generators/php,./js/web,./js/closure,./js/package,./js/typings,./js/externs,./js/i18n,./js/theme_scripts,LICENSE,/assets,.gitignore,.eslintignore,.eslintrc.json,.jshintignore,.npmrc
node-version: "10.x"
- name: Upload COS
uses: zkqiang/[email protected]
with:
args: upload -r ./ / --ignore *.git,.github/*,node_modules/*,oldversions/*,./oldversions/*,mdui/*,./mdui/*,libs/*,./libs/*,./js/demos/*,./js/SoftKey/*,./js/tests/*,./js/core/*,./js/media/*,./js/generators/python/*,./js/generators/javascript/*,./js/generators/dart/*,./js/generators/lua/*,./js/generators/php/*,./js/web/*,./js/closure/*,./js/package/*,./js/typings/*,./js/externs/*,./js/theme_scripts/*,LICENSE,/assets/*,.gitignore,.eslintignore,.eslintrc.json,.jshintignore,.npmrc
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
bucket: ${{ secrets.ENV_ID }}
region: ap-hongkong

0 comments on commit 07f1c53

Please sign in to comment.