Skip to content

Commit 99a6232

Browse files
committed
fix: nested build archive
1 parent 2e704d6 commit 99a6232

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/main.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: CI build
22
on:
33
push:
4-
branches: main
4+
branches: [main]
55
pull_request:
6-
branches: main
6+
branches: [main]
77

88
jobs:
99
build:
@@ -14,11 +14,17 @@ jobs:
1414
with:
1515
node-version: latest
1616
- name: Build
17-
run: pnpm build-only
18-
# Separate build and type check,
17+
run: pnpm build-only
18+
# Separate build and type check,
1919
# because *.d.ts files aren't generated before build
2020
- name: Type Check
2121
run: pnpm type-check
22+
- name: Archive build artifacts
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: build
26+
path: |
27+
./dist/
2228
- name: Compress action step
2329
uses: a7ul/[email protected]
2430
id: compress
@@ -28,12 +34,6 @@ jobs:
2834
files: |
2935
./dist
3036
outPath: dist.tar.gz
31-
- name: Archive build artifacts
32-
uses: actions/upload-artifact@v4
33-
with:
34-
name: build
35-
path: |
36-
./dist.tar.gz
3737
- name: Release
3838
uses: softprops/action-gh-release@v2
3939
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)