Przeglądaj źródła

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

* 指定只有main更新时才部署pages
LoGin 1 rok temu
rodzic
commit
81fd2446eb
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      .github/workflows/build.yml

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

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