File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
- - mkdocs
7
+ pull_request :
8
8
9
9
jobs :
10
10
deploy_live_website :
22
22
- name : Build pages
23
23
run : |
24
24
mkdocs build --strict
25
+ - name : Test
26
+ run : |
27
+ echo "${{ github.event.pull_request.number }}"
25
28
- uses : FirebaseExtended/action-hosting-deploy@v0
29
+ env :
30
+ PREVIEW_NAME : " preview-${{ github.event.pull_request.number }}"
31
+ LIVE_NAME : " live"
26
32
with :
27
33
repoToken : " ${{ secrets.GITHUB_TOKEN }}"
28
34
firebaseServiceAccount : " ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
29
35
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 }}
You can’t perform that action at this time.
0 commit comments