Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mc/1.20.1' into mc/1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xalcon committed Jul 27, 2023
2 parents e1fa888 + ca83c7c commit 5d6a270
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle
name: Gradle Build
run-name: Gradle Build ${{ github.ref_name }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -42,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 5d6a270

Please sign in to comment.