Skip to content

Commit 8a24d0f

Browse files
committed
add preview deployements for PRs
1 parent 95ee122 commit 8a24d0f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- mkdocs
7+
pull_request_target:
88

99
jobs:
1010
deploy_live_website:
@@ -23,8 +23,11 @@ jobs:
2323
run: |
2424
mkdocs build --strict
2525
- uses: FirebaseExtended/action-hosting-deploy@v0
26+
env:
27+
PREVIEW_NAME: "preview-${{ github.event.pull_request.number }}"
28+
LIVE_NAME: "live"
2629
with:
2730
repoToken: "${{ secrets.GITHUB_TOKEN }}"
2831
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
2932
projectId: cp-algorithms
30-
channelId: ${{ github.ref == 'refs/heads/master' && 'live' || 'mkdocs' }}
33+
channelId: ${{ github.event_name == 'pull' && github.ref == 'refs/heads/master' && env.LIVE_NAME || env.PREVIEW_NAME }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy