Update build.yml

pull/7847/head
Gary Stringham 1 month ago committed by GitHub
parent 05174765d6
commit c436631c38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -61,15 +61,17 @@ jobs:
- name: Create deploy bundle (Linux)
run: |
mkdir -p _dist/wiki
# copy compiled app (adjust paths if your repo structure differs)
rsync -a --exclude='.git' --exclude='.github' --exclude='node_modules' ./ _dist/wiki/
# keep only production deps to shrink bundle
rsync -a \
--exclude='.git' \
--exclude='.github' \
--exclude='node_modules' \
--exclude='.yarn/*' \
--exclude='.yarnrc*' \
--exclude='.yarn.lock.*' \
./ _dist/wiki/
(cd _dist/wiki && rm -rf node_modules && yarn --production --frozen-lockfile)
# config sample (dont ship your real config)
cp ./config.sample.yml _dist/wiki/config.sample.yml
# never ship a real config.yml in the tar
rm -f _dist/wiki/config.yml
# create tarball
find _dist/wiki/ -printf "%P\n" | tar -czf wiki-js.tar.gz --no-recursion -C _dist/wiki/ -T -
- name: Upload artifact

Loading…
Cancel
Save