ci: separate CI (PR + main) from build (main only after merge)

This commit is contained in:
2026-09-06 06:31:23 -07:00
parent 6e0cf38851
commit bd2a5839cc
+4
View File
@@ -4,6 +4,9 @@ on:
push: push:
branches: branches:
- main - main
pull_request:
branches:
- main
jobs: jobs:
test: test:
@@ -23,6 +26,7 @@ jobs:
name: Build & Push Image name: Build & Push Image
runs-on: rust runs-on: rust
needs: test needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4