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.
2 parents 95ee122 + 8a24d0f commit 98b431eCopy full SHA for 98b431e
.github/workflows/deploy-prod.yml
@@ -4,7 +4,7 @@ on:
4
push:
5
branches:
6
- master
7
- - mkdocs
+ pull_request_target:
8
9
jobs:
10
deploy_live_website:
@@ -23,8 +23,11 @@ jobs:
23
run: |
24
mkdocs build --strict
25
- uses: FirebaseExtended/action-hosting-deploy@v0
26
+ env:
27
+ PREVIEW_NAME: "preview-${{ github.event.pull_request.number }}"
28
+ LIVE_NAME: "live"
29
with:
30
repoToken: "${{ secrets.GITHUB_TOKEN }}"
31
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
32
projectId: cp-algorithms
- 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