Skip to content

Commit 7a21b98

Browse files
committed
ENH: Upgrade Netlify CI configuration with better preview deployment handling
1 parent a791f5f commit 7a21b98

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci_pr.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,23 @@ jobs:
5858
with:
5959
path: './lectures/_build/html'
6060

61-
- name: Preview Deploy to Netlify
61+
- name: Deploy Preview to Netlify
6262
uses: nwtgck/actions-netlify@v3
6363
with:
6464
publish-dir: './lectures/_build/html'
6565
production-branch: main
66+
production-deploy: false
6667
github-token: ${{ secrets.GITHUB_TOKEN }}
67-
deploy-message: "Preview Deploy from GitHub Actions"
68+
deploy-message: |
69+
Deploy from PR #${{ github.event.number }}
70+
Branch: ${{ github.head_ref }}
71+
Commit: ${{ github.sha }}
72+
alias: pr-${{ github.event.number }}
73+
enable-pull-request-comment: true
74+
enable-commit-comment: false
75+
enable-commit-status: true
76+
overwrites-pull-request-comment: true
6877
env:
6978
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
7079
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
80+
timeout-minutes: 10

0 commit comments

Comments
 (0)