34 lines
744 B
YAML
34 lines
744 B
YAML
name: Continuous Integration #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: true
|
|
|
|
- name: Upload COS
|
|
uses: zkqiang/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 |