Skip to content

Commit eb6f1cd

Browse files
committed
chore(gh-action): fix the action
1 parent bcaa121 commit eb6f1cd

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/publish_artifacts.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,27 @@ name: Publish artifacts
22

33
on:
44
pull_request:
5-
types:
6-
- labeled
5+
types: [ labeled ]
76

87
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
1211

13-
steps:
14-
- uses: actions/checkout@v3
12+
steps:
13+
- uses: actions/checkout@v3
1514

16-
- name: Install node
17-
uses: actions/setup-node@v3
18-
with:
15+
- name: Install node
16+
uses: actions/setup-node@v3
17+
with:
1918
node-version: 16
2019

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"
2423

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:
2827
name: build-artifacts
2928
path: build/

0 commit comments

Comments
 (0)