소스 검색

指定只有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