Files
server-config-cli/scripts/release.sh
hanruo 1129f9f915
Some checks failed
release / release (push) Failing after 9m17s
feat: "工作流"
2026-05-23 21:55:11 +08:00

26 lines
572 B
Bash
Executable File

#!/usr/bin/env bash
# Stage release artifacts into ./release/ for upload to Gitea Releases.
#
# Produces:
# release/app.mjs — built bundle
# release/install.sh — installer script
#
# Upload both files as assets on the matching tag in Gitea.
set -euo pipefail
cd "$(dirname "$0")/.."
echo "==> npm run build"
npm run build
mkdir -p release
cp dist/app.mjs release/app.mjs
cp scripts/install.sh release/install.sh
echo
echo "Staged:"
ls -lh release/
echo
echo "Next: upload release/app.mjs and release/install.sh as assets on the Gitea release tag."