From 2282221d866eeb087794326225c7e9e2d9a3e201 Mon Sep 17 00:00:00 2001 From: Eritque arcus <1930893235@qq.com> Date: Fri, 29 Oct 2021 16:35:20 +0800 Subject: [PATCH] CI(releases.yml): fix ci Former-commit-id: f86fd32f9f094c96cad44b22062ba67cb2260877 --- .github/workflows/releases.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 66bacc00e..c9aba5e81 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -45,16 +45,18 @@ jobs: run: cat release.log - name: generate release files list run: | - if ${{ github.event.inputs.notHppAndCpp }} == true; then + if [ ${{ github.event.inputs.notHppAndCpp }} == false ] + then echo "flist=./kotlin/loader/build/libs/MiraiCP-loader-*.jar,./kotlin/plugin/build/mirai/MiraiCP-plugin-*.mirai.jar,./cpp/MiraiCP_CPP.zip,./cpp/include/miraiCP.hpp,./cpp/include/miraiCP.cpp" >> $GITHUB_ENV echo "flist=./kotlin/loader/build/libs/MiraiCP-loader-*.jar,./kotlin/plugin/build/mirai/MiraiCP-plugin-*.mirai.jar,./cpp/MiraiCP_CPP.zip,./cpp/include/miraiCP.hpp,./cpp/include/miraiCP.cpp" else echo "flist=./kotlin/loader/build/libs/MiraiCP-loader-*.jar,./kotlin/plugin/build/mirai/MiraiCP-plugin-*.mirai.jar,./cpp/MiraiCP_CPP.zip" >> $GITHUB_ENV echo "flist=./kotlin/loader/build/libs/MiraiCP-loader-*.jar,./kotlin/plugin/build/mirai/MiraiCP-plugin-*.mirai.jar,./cpp/MiraiCP_CPP.zip" + fi - name: Create Release uses: ncipollo/release-action@v1.8.6 with: - artifacts: env.flist + artifacts: ${{ env.flist }} bodyfile: release.log tag: ${{ github.event.inputs.v }} token: ${{ secrets.GITHUB_TOKEN }}