Browse Source

workflow: only sync to repo and deploy demo on dev branch

wangweimin 4 years ago
parent
commit
391f882d5c
2 changed files with 8 additions and 3 deletions
  1. 3 1
      .drone.yml
  2. 5 2
      .github/workflows/sync_repo.yml

+ 3 - 1
.drone.yml

@@ -6,8 +6,10 @@ clone:
   disable: true
   disable: true
 
 
 trigger:
 trigger:
+  branch:
+  - dev
   event:
   event:
-    - push
+  - push
 
 
 steps:
 steps:
   - name: clone
   - name: clone

+ 5 - 2
.github/workflows/sync_repo.yml

@@ -1,5 +1,8 @@
-name: Sync with mirror repo
-on: push
+name: Push mirror and assets
+on:
+  push:
+    branches:
+      - dev
 jobs:
 jobs:
   sync:
   sync:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest