We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d172c commit a3dbcc3Copy full SHA for a3dbcc3
.github/workflows/deploy-site.yml
@@ -13,7 +13,15 @@ jobs:
13
runs-on: ubuntu-latest
14
15
steps:
16
- - uses: actions/checkout@v4
+ - name: Check-out (Production)
17
+ uses: actions/checkout@v4
18
+ if: github.event_name == 'push'
19
+
20
+ - name: Check-out (Staging)
21
22
+ if: github.event_name == 'pull_request_target'
23
+ with:
24
+ ref: ${{ github.event.pull_request.head.sha }}
25
26
- name: Setup Node.js
27
uses: actions/setup-node@v4
@@ -81,7 +89,7 @@ jobs:
81
89
name: Deploy to Staging
82
90
needs: [build]
83
91
84
- if: github.head_ref != 'refs/heads/main'
92
85
93
environment:
86
94
name: staging
87
95
url: "https://${{ steps.slug.outputs.branch-name-slug }}.blog-staging.jb3.dev/"
0 commit comments