only build and deploy on main
change
commit 53b86e6dcd167b47e65f5207b2b24ed085328a81
author Alpha Chen <alpha@kejadlen.dev>
date
parent 5dac5ac9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2ccf62f..d952381 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,6 +24,7 @@ jobs:
 
   build:
     runs-on: ubuntu-latest
+    if: github.ref == 'refs/heads/master'
     needs: [ci]
     permissions:
       contents: read
@@ -52,6 +53,7 @@ jobs:
 
   deploy:
     runs-on: ubuntu-latest
+    if: github.ref == 'refs/heads/master'
     needs: [build]
     environment: production
     concurrency: