From 47b5922ea20e1169b708c47a7b2994d9c1e9bc2d Mon Sep 17 00:00:00 2001 From: ciaochaos <1272777550@qq.com> Date: Wed, 13 May 2020 16:50:17 +0800 Subject: [PATCH] dev-redux Action --- .github/workflows/nodejs-dev.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/nodejs-dev.yml diff --git a/.github/workflows/nodejs-dev.yml b/.github/workflows/nodejs-dev.yml new file mode 100644 index 0000000..d50c2ee --- /dev/null +++ b/.github/workflows/nodejs-dev.yml @@ -0,0 +1,37 @@ +name: Continuous Integration #action名称 +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 + run: sudo chmod 775 ./build/ + + - 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_DEV }} + region: ap-shanghai