qrbtf/.github/workflows/nodejs-dev.yml

38 lines
830 B
YAML
Raw Normal View History

2020-05-13 09:04:18 +00:00
name: Continuous Integration Dev #action名称
2020-05-13 08:50:17 +00:00
on:
push:
branches:
- dev-redux
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
2020-05-13 09:07:40 +00:00
run: sudo chmod 775 ./build/ && ls
2020-05-13 08:50:17 +00:00
- name: Upload COS
uses: ciaochaos/tencent-cos-action@master
with:
2020-05-13 09:07:40 +00:00
args: delete -r -f / && upload -r /build/ /
2020-05-13 08:50:17 +00:00
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
bucket: ${{ secrets.BUCKET_DEV }}
region: ap-shanghai