Browse Source

指定只有main更新时才部署pages (#3)

* 指定只有main更新时才部署pages
LoGin 1 năm trước cách đây
mục cha
commit
e861661d6b
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      .github/workflows/build.yml

+ 7 - 1
.github/workflows/build.yml

@@ -1,5 +1,11 @@
 name: Build and Deploy
-on: [ push, pull_request ]
+
+on:
+  push:
+    branches: [ "main" ]
+  pull_request:
+    branches: [ "main" ]
+
 jobs:
   build-and-deploy:
     runs-on: ubuntu-latest