更新工作流
This commit is contained in:
16
.github/workflows/BuildLauncher.yml
vendored
16
.github/workflows/BuildLauncher.yml
vendored
@@ -33,19 +33,17 @@ jobs:
|
|||||||
container: refringe/spt-build-dotnet:2.1.0
|
container: refringe/spt-build-dotnet:2.1.0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 克隆代码
|
- name: 安装必要工具
|
||||||
run: |
|
|
||||||
# 直接克隆当前仓库
|
|
||||||
git clone --depth 1 https://gitea.yanghuanglin.cn/${{ github.repository }} .
|
|
||||||
git checkout ${{ github.ref }}
|
|
||||||
|
|
||||||
- name: 配置环境
|
|
||||||
run: |
|
run: |
|
||||||
# 安装必要工具
|
# 安装必要工具
|
||||||
cp bin/* /usr/bin/
|
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install zip unzip wget jq nodejs -y
|
apt install zip unzip wget jq nodejs -y
|
||||||
|
|
||||||
|
- name: 克隆代码
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 配置环境
|
||||||
|
run: |
|
||||||
# 创建脚本目录和输出目录
|
# 创建脚本目录和输出目录
|
||||||
echo "创建脚本目录${{ env.BUILD_SCRIPT_DIR }}和输出目录${{ env.BUILD_SCRIPT_OUTPUT_DIR }}"
|
echo "创建脚本目录${{ env.BUILD_SCRIPT_DIR }}和输出目录${{ env.BUILD_SCRIPT_OUTPUT_DIR }}"
|
||||||
mkdir -p ${{ env.BUILD_SCRIPT_DIR }}
|
mkdir -p ${{ env.BUILD_SCRIPT_DIR }}
|
||||||
@@ -57,7 +55,7 @@ jobs:
|
|||||||
# 复制构建脚本
|
# 复制构建脚本
|
||||||
cp build.sh ${{ env.BUILD_SCRIPT_DIR }}
|
cp build.sh ${{ env.BUILD_SCRIPT_DIR }}
|
||||||
|
|
||||||
- name: 获取Managed.zip
|
- name: 获取 Managed.zip
|
||||||
id: managed
|
id: managed
|
||||||
if: ${{ github.event.inputs.build_modules == 'true' }}
|
if: ${{ github.event.inputs.build_modules == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user