@@ -87,11 +87,22 @@ jobs:
8787 GITHUB_TOKEN : ${{ github.token }}
8888 run : ./gradlew closeMilestone --stacktrace --no-configuration-cache --warning-mode all
8989
90+ - name : Build website update inputs
91+ id : website_inputs
92+ if : ${{ inputs.update_website }}
93+ run : |
94+ echo "mod_version=$(grep '^mod_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r' | sed 's/-MC.*$//')" >> "$GITHUB_OUTPUT"
95+ echo "mc_version=$(grep '^minecraft_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
96+ echo "fapi_version=$(grep '^fabric_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
97+
9098 - name : Upload backups
9199 if : ${{ inputs.upload_backups }}
92- env :
93- WI_BACKUPS_API_KEY : ${{ secrets.WI_BACKUPS_API_KEY }}
94- run : ./gradlew uploadBackups --stacktrace --no-configuration-cache --warning-mode all
100+ uses : Wurst-Imperium/upload-backups@v1
101+ with :
102+ api_key : ${{ secrets.WI_BACKUPS_API_KEY }}
103+ project : ChestESP
104+ version : ${{ steps.website_inputs.outputs.mod_version }}
105+ path : build/libs/*.jar
95106
96107 - name : Publish to GitHub
97108 if : ${{ inputs.publish_github }}
@@ -113,14 +124,6 @@ jobs:
113124 echo "file_id=$file_id" >> "$GITHUB_OUTPUT"
114125 echo "CurseForge file ID: \`$file_id\`" >> $GITHUB_STEP_SUMMARY
115126
116- - name : Build website update inputs
117- id : website_inputs
118- if : ${{ inputs.update_website }}
119- run : |
120- echo "mod_version=$(grep '^mod_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r' | sed 's/-MC.*$//')" >> "$GITHUB_OUTPUT"
121- echo "mc_version=$(grep '^minecraft_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
122- echo "fapi_version=$(grep '^fabric_version=' gradle.properties | cut -d'=' -f2 | tr -d ' \r')" >> "$GITHUB_OUTPUT"
123-
124127 - name : Trigger website update
125128 if : ${{ inputs.update_website }}
126129 uses : Wurst-Imperium/dispatch-and-wait@v1
0 commit comments