workflow fixes

This commit is contained in:
CPunisher 2020-05-15 18:19:20 +08:00
parent 3551e2c462
commit 8376f89379
2 changed files with 37 additions and 0 deletions

37
.github/workflows/nodejs-master.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Continuous Integration Dev #action名称
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
with:
ref: master
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Build project
run: yarn && yarn build
env:
CI: false
- name: Authenticate
run: sudo chmod 775 ./build/ && ls
- name: Upload COS
uses: ciaochaos/tencent-cos-action@master
with:
args: delete -r -f / && upload -r ./build/ /
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
bucket: ${{ secrets.BUCKET }}
region: ap-shanghai