Skip to content

Commit 7fcae9b

Browse files
committed
add preview deployements for PRs
1 parent 95ee122 commit 7fcae9b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 8 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:
88

99
jobs:
1010
deploy_live_website:
@@ -22,9 +22,15 @@ jobs:
2222
- name: Build pages
2323
run: |
2424
mkdocs build --strict
25+
- name: Test
26+
run: |
27+
echo "${{ github.event.pull_request.number }}"
2528
- uses: FirebaseExtended/action-hosting-deploy@v0
29+
env:
30+
PREVIEW_NAME: "preview-${{ github.event.pull_request.number }}"
31+
LIVE_NAME: "live"
2632
with:
2733
repoToken: "${{ secrets.GITHUB_TOKEN }}"
2834
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
2935
projectId: cp-algorithms
30-
channelId: ${{ github.ref == 'refs/heads/master' && 'live' || 'mkdocs' }}
36+
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