编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-04-10 12:15:11 +08:00
committed by cnb
parent 6574450489
commit fa5d50955d

View File

@@ -151,7 +151,7 @@ steps:
source: source:
- blazing/build/** - blazing/build/**
target: /opt/blazing/ target: /ext/blazing/
strip_components: 1 # 统一缩进6个空格 strip_components: 1 # 统一缩进6个空格
skip_verify: true # 统一缩进6个空格 skip_verify: true # 统一缩进6个空格
timeout: 30s # 统一缩进6个空格 timeout: 30s # 统一缩进6个空格
@@ -167,7 +167,7 @@ steps:
password: *ssh_pass password: *ssh_pass
script: script:
- | - |
cd /opt/blazing/build cd /ext/blazing/build
ls -t login_* 2>/dev/null | head -1 ls -t login_* 2>/dev/null | head -1
BIN_NAME=$(ls -t login_* 2>/dev/null | head -1) BIN_NAME=$(ls -t login_* 2>/dev/null | head -1)
echo "BIN_NAME: $BIN_NAME" echo "BIN_NAME: $BIN_NAME"
@@ -201,9 +201,9 @@ steps:
# 移动logic产物到public目录 # 移动logic产物到public目录
LOGIC_BIN=$(ls -t logic_* 2>/dev/null | head -1) LOGIC_BIN=$(ls -t logic_* 2>/dev/null | head -1)
if [ -n "$LOGIC_BIN" ]; then if [ -n "$LOGIC_BIN" ]; then
mkdir -p /opt/blazing/build/public mkdir -p /ext/blazing/build/public
mv $LOGIC_BIN /opt/blazing/build/public/ mv $LOGIC_BIN /ext/blazing/build/public/
echo "✅ Logic产物已移动到 /opt/blazing/build/public/ | 文件: $(basename $LOGIC_BIN)" echo "✅ Logic产物已移动到 /ext/blazing/build/public/ | 文件: $(basename $LOGIC_BIN)"
else else
echo "⚠️ 未找到Logic产物" echo "⚠️ 未找到Logic产物"
fi fi