Skip to content

Commit

Permalink
fix: nested build archive
Browse files Browse the repository at this point in the history
  • Loading branch information
chemio9 committed Dec 14, 2024
1 parent 2e704d6 commit 99a6232
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI build
on:
push:
branches: main
branches: [main]
pull_request:
branches: main
branches: [main]

jobs:
build:
Expand All @@ -14,11 +14,17 @@ jobs:
with:
node-version: latest
- name: Build
run: pnpm build-only
# Separate build and type check,
run: pnpm build-only
# Separate build and type check,
# because *.d.ts files aren't generated before build
- name: Type Check
run: pnpm type-check
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: |
./dist/
- name: Compress action step
uses: a7ul/[email protected]
id: compress
Expand All @@ -28,12 +34,6 @@ jobs:
files: |
./dist
outPath: dist.tar.gz
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: |
./dist.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 99a6232

Please sign in to comment.