Skip to content

Commit 4897903

Browse files
committed
attach build to draft release to get direct link
1 parent 605a02d commit 4897903

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/prebuild-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525

2626
- name: Build application
2727
env:
28+
NODE_ENV: production
2829
NEXT_TELEMETRY_DISABLED: 1
2930
run: yarn build
3031

@@ -46,8 +47,11 @@ jobs:
4647
- name: Create prebuild directory structure
4748
run: |
4849
mkdir -p prebuild-release/jotty/.next
49-
cp -r .next/standalone/* prebuild-release/jotty/
50+
cp -r .next/standalone/. prebuild-release/jotty/
5051
cp -r .next/static prebuild-release/jotty/.next/static
52+
if [ -f .next/BUILD_ID ]; then
53+
cp .next/BUILD_ID prebuild-release/jotty/.next/BUILD_ID
54+
fi
5155
cp -r public prebuild-release/jotty/public
5256
cp -r howto prebuild-release/jotty/howto
5357

0 commit comments

Comments
 (0)