Эх сурвалжийг харах

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

* 指定只有main更新时才部署pages
LoGin 1 жил өмнө
parent
commit
e861661d6b

+ 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