Skip to content

Commit 780ab7c

Browse files
committed
ci: build and deploy main and dev branches
1 parent 5ddaf62 commit 780ab7c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
git fetch origin dev
4747
git checkout dev
4848
echo "Building dev branch output..."
49-
pnpm build --outDir dist/dev
50-
# Merge main build back
51-
mkdir dist
49+
# Restore main build into dist/
5250
mv dist-main/* dist/
51+
# Build dev output under /dev
52+
pnpm build --outDir dist/dev
5353
touch dist/.nojekyll
5454
5555
- name: Upload build output

0 commit comments

Comments
 (0)