Skip to content

Commit 4f900a8

Browse files
committed
πŸŽ› ci: Fix PR pipeline
1 parent 7bd33b6 commit 4f900a8

2 files changed

Lines changed: 4 additions & 44 deletions

File tree

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: πŸš€ Deploy
1+
name: πŸš€ Build & Deploy
22

33
on:
44
push:
55
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
68
workflow_dispatch:
79

810
permissions:
@@ -87,6 +89,7 @@ jobs:
8789
url: ${{ steps.deployment.outputs.page_url }}
8890
runs-on: ubuntu-latest
8991
needs: build
92+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
9093
steps:
9194
- name: πŸš€ Deploy to GitHub Pages
9295
id: deployment

β€Ž.github/workflows/test-build.ymlβ€Ž

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
Β (0)