Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xalcon authored Jul 24, 2023
1 parent 0c85d02 commit ca83c7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,25 @@ jobs:
id: gradle_build
run: |
./gradlew build versionTxt
echo "artifactversion=`basename \`cat ./build/libs/version.txt\``"
echo "artifactversion=`basename \`cat ./build/libs/version.txt\``" >> $GITHUB_OUTPUT
echo "artifactname=`basename \`cat ./build/libs/artifact.txt\``"
echo "artifactname=`basename \`cat ./build/libs/artifact.txt\``" >> $GITHUB_OUTPUT
echo "artifactfullname=`realpath ./build/libs/\`cat ./build/libs/artifact.txt\``"
echo "artifactfullname=`realpath ./build/libs/\`cat ./build/libs/artifact.txt\``" >> $GITHUB_OUTPUT
echo "mcversion=`basename ${{ github.ref }}`"
echo "mcversion=`basename ${{ github.ref }}`" >> $GITHUB_OUTPUT
if [[ `cat ./build/libs/version.txt` == *-alpha ]]
then
echo "releasetype=alpha"
echo "releasetype=alpha" >> $GITHUB_OUTPUT
elif [[ `cat ./build/libs/version.txt` == *-beta ]]
then
echo "releasetype=beta"
echo "releasetype=beta" >> $GITHUB_OUTPUT
else
echo "releasetype=release"
echo "releasetype=release" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit ca83c7c

Please sign in to comment.