forked from NovaEngineering-Source/CatRoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd37590
commit 21d865c
Showing
6 changed files
with
42 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ on: | |
options: | ||
- Stable | ||
- Experimental | ||
- Bleeding Edge | ||
|
||
run-name: "${{ github.event_name == 'pull_request' && 'Pull Request Build, DO NOT DOWNLOAD' || format('{0}#{1}: {2}', github.ref_name, github.run_number, github.event.commits[0].message)}}" | ||
|
||
|
@@ -50,8 +49,6 @@ jobs: | |
BRANCH_FEAT=$(echo "${{ steps.branch-names.outputs.current_branch }}" | cut -d'/' -f1 | awk '{print tolower($0)}') | ||
if [ "$BRANCH_FEAT" = "experimental" ]; then | ||
echo "BUILD_TYPE=Experimental" >> $GITHUB_OUTPUT | ||
elif [ "$BRANCH_FEAT" = "bleeding-edge" ]; then | ||
echo "BUILD_TYPE=Bleeding Edge" >> $GITHUB_OUTPUT | ||
else | ||
echo "BUILD_TYPE=Stable" >> $GITHUB_OUTPUT | ||
fi | ||
|
@@ -67,17 +64,22 @@ jobs: | |
- name: Build Jars | ||
run: ./gradlew build -Prun_number = ${{ github.run_number }} | ||
|
||
- name: Get version | ||
run: | | ||
./gradlew --quiet printVersion > out.txt | ||
echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV | ||
- name: Upload Forge Universal | ||
uses: actions/[email protected] | ||
with: | ||
name: universal | ||
name: universal-${{ env.CLEANROOM_VERSION }} | ||
path: projects/cleanroom/build/libs/*-universal.jar | ||
|
||
- name: Upload Forge Installer | ||
id: upload-job | ||
uses: actions/[email protected] | ||
with: | ||
name: installer | ||
name: installer-${{ env.CLEANROOM_VERSION }} | ||
path: projects/cleanroom/build/libs/*-installer.jar | ||
if-no-files-found: error | ||
|
||
|
@@ -88,4 +90,4 @@ jobs: | |
token: ${{ secrets.CLEANROOMMC_DISPATCH_TOKEN }} # require PAT :shrug: | ||
repository: CleanroomMC/CleanroomMMC | ||
event-type: cleanroom_upload_artifact | ||
client-payload: '{"commit_hash": "${{ github.sha }}", "run_job_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", "branch": "${{ steps.branch-names.outputs.current_branch }}", "build_type": "${{ inputs.environment || steps.vars.outputs.BUILD_TYPE }}", "actor": "${{ github.actor }}", "number": "${{ github.run_number }}"}' | ||
client-payload: '{"commit_hash": "${{ github.sha }}", "run_job_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", "branch": "${{ steps.branch-names.outputs.current_branch }}", "build_type": "${{ inputs.environment || steps.vars.outputs.BUILD_TYPE }}", "actor": "${{ github.actor }}", "version": "${{ env.CLEANROOM_VERSION }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
/buildSrc/.gradle/ | ||
/buildSrc/build/ | ||
/logs/ | ||
version.txt | ||
src/main/java/com/cleanroommc/common/CleanroomVersion.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
src/main/java-templates/com/cleanroommc/common/CleanroomVersion.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.cleanroommc.common; | ||
|
||
public class CleanroomVersion { | ||
public static final String VERSION = "%VERSION%"; | ||
public static final String BUILD_VERSION = "%BUILD_VERSION%"; | ||
} |