File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Spec
2
2
3
3
on :
4
4
# Run on PRs and pushes to the default branch.
5
5
push :
6
6
branches : [ main ]
7
7
paths :
8
8
- ' specification/**'
9
- - ' .github/workflows/ci .yml'
9
+ - ' .github/workflows/spec .yml'
10
10
pull_request :
11
11
branches : [ main ]
12
12
paths :
13
13
- ' specification/**'
14
- - ' .github/workflows/ci .yml'
14
+ - ' .github/workflows/spec .yml'
15
15
16
16
jobs :
17
17
specification :
18
18
runs-on : ubuntu-latest
19
- if : |
20
- (
21
- (github.event_name == 'push'
22
- && github.ref == 'refs/heads/main'
23
- && github.repository == 'dart-lang/language'
24
- ) ||
25
- (github.event.pull_request.head.repo.full_name == github.repository)
26
- )
27
19
28
20
steps :
29
21
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
22
+
30
23
- name : Install latex tools
31
24
run : |
32
25
sudo apt-get update -qq
@@ -35,13 +28,17 @@ jobs:
35
28
texlive-latex-extra \
36
29
texlive-fonts-recommended \
37
30
lmodern
31
+
38
32
- name : Build specification
39
33
run : |
40
34
cd specification
41
35
make
42
36
mkdir firebase
43
37
cp dartLangSpec.pdf firebase/DartLangSpecDraft.pdf
44
- - uses : FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2
38
+
39
+ - name : Upload specification
40
+ if : ${{ github.event.pull_request.merged }}
41
+ uses : FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2
45
42
with :
46
43
repoToken : ' ${{ secrets.GITHUB_TOKEN }}'
47
44
firebaseServiceAccount : ' ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DART_SPECIFICATION }}'
You can’t perform that action at this time.
0 commit comments