* 指定只有main更新时才部署pages
@@ -1,5 +1,11 @@
name: Build and Deploy
-on: [ push, pull_request ]
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest