浏览代码

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

* 指定只有main更新时才部署pages
LoGin 1 年之前
父节点
当前提交
81fd2446eb
共有 1 个文件被更改,包括 6 次插入1 次删除
  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