File tree Expand file tree Collapse file tree 2 files changed +14
-30
lines changed Expand file tree Collapse file tree 2 files changed +14
-30
lines changed Original file line number Diff line number Diff line change 1
1
name : Build
2
2
3
- on :
4
- workflow_call :
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
5
8
6
9
jobs :
7
10
build :
Original file line number Diff line number Diff line change 1
1
name : Deploy
2
2
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
3
+ on :
4
+ workflow_run :
5
+ workflows : [build]
6
+ types :
7
+ - completed
8
8
9
9
jobs :
10
- build :
11
- uses : ./.github/workflows/build.yml
12
- secrets : inherit
13
-
14
10
deploy_live_website :
15
11
runs-on : ubuntu-latest
16
- needs : build
17
12
if : github.event_name == 'push'
18
13
steps :
19
- - name : Checkout
20
- uses : actions/checkout@v4
21
-
22
14
- name : Download pages
23
15
uses : actions/download-artifact@v4
24
16
with :
17
+ run-id : ${{ github.event.workflow_run.id }}
25
18
name : page-build
26
19
path : public
27
20
28
- - name : Get PR information
29
- uses : potiuk/get-workflow-origin@751d47254ef9e8b5eef955e24e79305233702781
30
- id : source-run-info
31
- with :
32
- token : ${{ secrets.GITHUB_TOKEN }}
33
- sourceRunId : ${{ github.event.workflow_run.id }}
34
-
35
21
- name : change URLs for large files
36
22
shell : bash
37
23
run : |
@@ -49,19 +35,14 @@ jobs:
49
35
50
36
- uses : FirebaseExtended/action-hosting-deploy@v0
51
37
id : firebase-deploy
52
- if : env.FIREBASE_SERVICE_ACCOUNT
53
- env :
54
- LIVE_NAME : " live"
55
- FIREBASE_SERVICE_ACCOUNT : ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
56
38
with :
57
- repoToken : " ${{ secrets.GITHUB_TOKEN }}"
58
- firebaseServiceAccount : " ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
39
+ repoToken : ${{ secrets.GITHUB_TOKEN }}
40
+ firebaseServiceAccount : ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
59
41
projectId : cp-algorithms
60
- channelId : ${{ env.LIVE_NAME }}
42
+ channelId : live
61
43
62
44
deploy_github_pages :
63
45
runs-on : ubuntu-latest
64
- needs : build
65
46
steps :
66
47
- name : Checkout repository
67
48
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments