From fa6de870f1f670c359c4d25ab200f98428262ca1 Mon Sep 17 00:00:00 2001
From: ciaochaos <1272777550@qq.com>
Date: Fri, 1 May 2020 13:44:08 +0800
Subject: [PATCH] 0.1.0.1
---
.github/workflows/nodejs.yml | 44 ++++++++++++++++++++----------------
.idea/workspace.xml | 16 +++++++++----
2 files changed, 36 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index 630812d..f5e2eec 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -1,26 +1,32 @@
name: Continuous Integration #action名称
-on: [push] #在推送的时候运行此action
+on:
+ push:
+ branches:
+ - master
jobs:
- build_job:
- runs-on: ubuntu-latest #运行环境
- name: build
+ build:
+ runs-on: ubuntu-latest
+
steps:
- # check out the repository
- - name: Checkout
- uses: actions/checkout@v2 #这里使用了github官方提供的action,checkout项目到虚拟机上
+ - name: Checkout master
+ uses: actions/checkout@v2
+ with:
+ ref: master
- - name: Install Dependencies
- run: yarn
- - name: Build
- run: yarn build
+ - name: Setup node
+ uses: actions/setup-node@v1
+ with:
+ node-version: "12.x"
+
+ - name: Build project
+ run: yarn && yarn build
- # 使用云开发 Github Action 部署
- name: Upload COS
- uses: zkqiang/tencent-cos-action@master
- with:
- args: delete -r -f / && upload -r ./dist/ /
- secret_id: ${{ secrets.SECRET_ID }}
- secret_key: ${{ secrets.SECRET_KEY }}
- bucket: ${{ secrets.BUCKET }}
- region: ap-shanghai
\ No newline at end of file
+ uses: zkqiang/tencent-cos-action@master
+ with:
+ args: delete -r -f / && upload -r ./dist/ /
+ secret_id: ${{ secrets.SECRET_ID }}
+ secret_key: ${{ secrets.SECRET_KEY }}
+ bucket: ${{ secrets.BUCKET }}
+ region: ap-shanghai
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d1d1cba..f918dc5 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -12,7 +12,6 @@
-
@@ -77,7 +76,7 @@
1588240852207
-
+
1588308749650
@@ -107,7 +106,14 @@
1588309902902
-
+
+ 1588311660483
+
+
+
+ 1588311660483
+
+
@@ -134,10 +140,10 @@
-
+
-
+