Skip to content

Commit b834611

Browse files
committed
chore: add debug logs for preview deployment step
1 parent 04cf37f commit b834611

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,19 @@ jobs:
8484
needs: build
8585
runs-on: ubuntu-latest
8686

87-
# Deploy preview for dev branches (not master, not PRs)
87+
# Deploy preview for dev branches (not master, only on direct push)
8888
if: github.ref != 'refs/heads/master' && github.event_name == 'push'
8989

9090
steps:
91+
- name: Debug deployment conditions
92+
run: |
93+
echo "GitHub ref: ${{ github.ref }}"
94+
echo "GitHub ref name: ${{ github.ref_name }}"
95+
echo "Event name: ${{ github.event_name }}"
96+
echo "Is master?: ${{ github.ref == 'refs/heads/master' }}"
97+
echo "Is push?: ${{ github.event_name == 'push' }}"
98+
echo "Should deploy?: ${{ github.ref != 'refs/heads/master' && github.event_name == 'push' }}"
99+
91100
- name: Download Preview Artifact
92101
uses: actions/download-artifact@v4
93102
with:

0 commit comments

Comments
 (0)