This commit is contained in:
Yukino_fox
2026-03-28 10:34:01 +08:00
27 changed files with 2076 additions and 1123 deletions
+12
View File
@@ -1,6 +1,7 @@
name: build
on:
push:
workflow_dispatch:
inputs:
version:
@@ -39,6 +40,17 @@ jobs:
echo "${{ github.event.inputs.version }} ${{ github.event.inputs.build }}"
echo "__EOF__"
} >> "$GITHUB_OUTPUT"
elif [ "${{ github.event_name }}" = "push" ]; then
VERSION="$(sed -n 's/.*"version":[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -n 1)"
if [ -z "$VERSION" ]; then
echo "无法从 package.json 读取 version 字段" >&2
exit 1
fi
{
echo "message<<__EOF__"
echo "$VERSION build:all"
echo "__EOF__"
} >> "$GITHUB_OUTPUT"
else
{
echo "message<<__EOF__"