This commit is contained in:
25
scripts/release.sh
Executable file
25
scripts/release.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user