Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
CI(releases.yml): fix ci
Browse files Browse the repository at this point in the history
Former-commit-id: f86fd32
  • Loading branch information
Nambers committed Oct 29, 2021
1 parent 0f5171a commit 2282221
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
artifacts: env.flist
artifacts: ${{ env.flist }}
bodyfile: release.log
tag: ${{ github.event.inputs.v }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2282221

Please sign in to comment.