File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -2,28 +2,27 @@ name: Publish artifacts
2
2
3
3
on :
4
4
pull_request :
5
- types :
6
- - labeled
5
+ types : [ labeled ]
7
6
8
7
jobs :
9
- build-artifacts :
10
- if : contains( github.event.pull_request.labels.*. name, 'artifact')
11
- runs-on : ubuntu-latest
8
+ build-artifacts :
9
+ if : ${{ github.event.label. name == 'artifact' }}
10
+ runs-on : ubuntu-latest
12
11
13
- steps :
14
- - uses : actions/checkout@v3
12
+ steps :
13
+ - uses : actions/checkout@v3
15
14
16
- - name : Install node
17
- uses : actions/setup-node@v3
18
- with :
15
+ - name : Install node
16
+ uses : actions/setup-node@v3
17
+ with :
19
18
node-version : 16
20
19
21
- - uses : preactjs/compressed-size-action@v2
22
- with :
23
- build-script : " build:production"
20
+ - uses : preactjs/compressed-size-action@v2
21
+ with :
22
+ build-script : " build:production"
24
23
25
- - name : Upload build artifacts
26
- uses : actions/upload-artifact@v4
27
- with :
24
+ - name : Upload build artifacts
25
+ uses : actions/upload-artifact@v4
26
+ with :
28
27
name : build-artifacts
29
28
path : build/
You can’t perform that action at this time.
0 commit comments