From 8376f893791a80ecd1cf2d695a2db23f29b7cc19 Mon Sep 17 00:00:00 2001 From: CPunisher <1343316114@qq.com> Date: Fri, 15 May 2020 18:19:20 +0800 Subject: [PATCH] workflow fixes --- .../workflows/{nodejs.yml => nodejs-dev.yml} | 0 .github/workflows/nodejs-master.yml | 37 +++++++++++++++++++ 2 files changed, 37 insertions(+) rename .github/workflows/{nodejs.yml => nodejs-dev.yml} (100%) create mode 100644 .github/workflows/nodejs-master.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs-dev.yml similarity index 100% rename from .github/workflows/nodejs.yml rename to .github/workflows/nodejs-dev.yml diff --git a/.github/workflows/nodejs-master.yml b/.github/workflows/nodejs-master.yml new file mode 100644 index 0000000..010ff19 --- /dev/null +++ b/.github/workflows/nodejs-master.yml @@ -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