File tree Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 1
- name : Build spec
1
+ name : Publish PR
2
2
3
- on : [pull_request, push ]
3
+ on : [pull_request]
4
4
5
5
jobs :
6
- build :
6
+ publish :
7
7
runs-on : ubuntu-latest
8
-
8
+ if : ${{ github.event.pull_request }}
9
9
steps :
10
10
- uses : actions/checkout@v3
11
- - uses : ljharb/actions/ node/ install@main
12
- name : ' nvm install lts/* && npm install'
11
+ - name : ' [ node LTS] npm install'
12
+ uses : ljharb/actions/node/ install@main
13
13
with :
14
14
node-version : lts/*
15
15
- run : npm run build
16
+ - name : publish to gh-pages
17
+
18
+ with :
19
+ branch : gh-pages
20
+ folder : build
21
+ target-folder : pr/${{ github.event.number }}
22
+ - name : provide comment
23
+ uses :
phulsechinmay/[email protected]
24
+ with :
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
+ message : |
27
+ The rendered spec for this PR is available at https://tc39.es/${{ github.event.pull_request.base.repo.name }}/pr/${{ github.event.number }}.
Original file line number Diff line number Diff line change 1
- name : Deploy gh-pages
1
+ name : Publish
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ branches : [main]
7
6
8
7
jobs :
9
- deploy :
8
+ publish :
10
9
runs-on : ubuntu-latest
11
-
12
10
steps :
13
11
- uses : actions/checkout@v3
14
- - uses : ljharb/actions/ node/ install@main
15
- name : ' nvm install lts/* && npm install'
12
+ - name : ' [ node LTS] npm install'
13
+ uses : ljharb/actions/node/ install@main
16
14
with :
17
15
node-version : lts/*
18
16
- run : npm run build
19
- -
uses :
JamesIves/[email protected]
17
+ - name : publish to gh-pages
18
+
20
19
with :
21
20
branch : gh-pages
22
21
folder : build
23
- clean : true
22
+ clean-exclude : |
23
+ pr
You can’t perform that action at this time.
0 commit comments