3535
3636 steps :
3737 - name : " Checkout"
38- uses : actions/checkout@v4
38+ uses : actions/checkout@v6
3939
4040 - name : " Debug Event"
4141 continue-on-error : true
6868 echo "::endgroup::"
6969
7070 - name : " Update Version"
71- uses : chkfung/android-version-actions@v1.2.2
71+ uses : chkfung/android-version-actions@fcf89abef1c7afba2083146dcca0c6da4705ba4b # v1.2.3
7272 id : version
7373 with :
7474 gradlePath : ${{ env.gradle_file }}
@@ -97,10 +97,10 @@ jobs:
9797
9898 echo ${{ secrets.ANDROID_KEYSTORE_PASS }} | keytool -list -keystore ${{ env.key_file }}
9999
100- - name : " Setup Node 22 "
101- uses : actions/setup-node@v4
100+ - name : " Setup Node 24 "
101+ uses : actions/setup-node@v6
102102 with :
103- node-version : 22
103+ node-version : 24
104104
105105 - name : " Prepare Build"
106106 working-directory : " .github/scripts"
@@ -114,7 +114,7 @@ jobs:
114114 ls -lAh app
115115
116116 - name : " Setup Java"
117- uses : actions/setup-java@v4
117+ uses : actions/setup-java@v5
118118 with :
119119 distribution : " zulu"
120120 java-version : " 17"
@@ -152,20 +152,17 @@ jobs:
152152 mv "${{ env.apk_path }}/${{ env.apk_file }}" "${{ env.apk_path }}/${{ env.signed_apk }}"
153153
154154 - name : " Upload APK to Artifacts"
155- if : ${{ !github.event.act }}
156155 uses : actions/upload-artifact@v4
157156 with :
158157 name : release
159158 path : ${{ env.apk_path }}
160159
161160 - name : " Upload APK to Release"
162161 if : ${{ github.event_name == 'release' }}
163- uses : svenstaro /upload-release-action@v2
162+ uses : cssnr /upload-release-action@v1
164163 with :
165- file : ${{ env.apk_path }}/${{ env.signed_apk }}
166- tag : ${{ github.ref }}
164+ files : ${{ env.apk_path }}/${{ env.signed_apk }}
167165 overwrite : true
168- file_glob : true
169166
170167 # - name: "Gradle Bundle AAB"
171168 # if: ${{ !github.event.release.prerelease }}
@@ -178,11 +175,11 @@ jobs:
178175 # continue-on-error: true
179176 # run: |
180177 # echo "env.aab_path: ${{ env.aab_path }}"
181- # ls -lAh ${{ env.aab_path }} ||:
178+ # ls -lAh " ${{ env.aab_path }}" ||:
182179 # echo "env.debug_symbols: ${{ env.debug_symbols }}"
183- # ls -lAh ${{ env.debug_symbols }} ||:
180+ # ls -lAh " ${{ env.debug_symbols }}" ||:
184181 # echo "env.mapping_file: ${{ env.mapping_file }}"
185- # ls -lAh $(dirname ${{ env.debug_symbols }}) ||:
182+ # ls -lAh " $(dirname " ${{ env.debug_symbols }}")" ||:
186183
187184 # - name: "Sign Bundle"
188185 # if: ${{ !github.event.release.prerelease }}
@@ -197,21 +194,30 @@ jobs:
197194
198195 # - name: "Upload Bundle to Artifacts"
199196 # if: ${{ !github.event.release.prerelease }}
200- # uses: actions/upload-artifact@v4
197+ # uses: actions/upload-artifact@v6
201198 # with:
202199 # name: bundle
203200 # path: ${{ env.aab_path }}
204201
202+ # - name: "Parse Release Notes"
203+ # if: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
204+ # id: notes
205+ # run: |
206+ # body="${{ github.event.release.body }}"
207+ # summary="$(echo "${body%%#*}" | tr -d '\r' | sed ':a;N;$!ba;s/\n*$//')"
208+ # echo "summary<<EOF" >> "$GITHUB_OUTPUT"
209+ # echo "$summary" >> "$GITHUB_OUTPUT"
210+ # echo "EOF" >> "$GITHUB_OUTPUT"
211+
205212 # - name: "Generate Whats New"
206- # if: ${{ !github.event.release.prerelease }}
213+ # if: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
207214 # run: |
208215 # mkdir -p whatsNew
209- # echo "GitHub Actions Build" > whatsNew/whatsnew-en-US
210- # cat whatsNew/whatsnew-en-US
216+ # echo -n "${{ steps.notes.outputs.summary }}" > whatsNew/whatsnew-en-US
211217
212218 # - name: "Upload Google Play"
213219 # if: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
214- # uses: r0adkll/upload-google-play@v1
220+ # uses: r0adkll/upload-google-play@935ef9c68bb393a8e6116b1575626a7f5be3a7fb # v1.1.3
215221 # with:
216222 # serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
217223 # packageName: ${{ env.package_name }}
@@ -240,24 +246,24 @@ jobs:
240246 if : ${{ !github.event.act }}
241247 continue-on-error : true
242248 run : |
243- echo -e "## Android Release\n\n" >> $GITHUB_STEP_SUMMARY
249+ echo -e "## Android Release\n\n" >> " $GITHUB_STEP_SUMMARY"
244250
245- echo -e "Final APK: \`${{ env.signed_apk }}\`\n\n" >> $GITHUB_STEP_SUMMARY
251+ echo -e "Final APK: \`${{ env.signed_apk }}\`\n\n" >> " $GITHUB_STEP_SUMMARY"
246252
247- echo -e "<details><summary>Build Artifacts</summary>\n\n" >> $GITHUB_STEP_SUMMARY
248- echo -e "\`\`\`text\n$(ls -lAh ${{ env.apk_path }})\n\`\`\`\n\n" >> $GITHUB_STEP_SUMMARY
249- echo -e "</details>\n\n" >> $GITHUB_STEP_SUMMARY
253+ echo -e "<details><summary>Build Artifacts</summary>\n\n" >> " $GITHUB_STEP_SUMMARY"
254+ echo -e "\`\`\`text\n$(ls -lAh ${{ env.apk_path }})\n\`\`\`\n\n" >> " $GITHUB_STEP_SUMMARY"
255+ echo -e "</details>\n\n" >> " $GITHUB_STEP_SUMMARY"
250256
251257 if [ -f "${{ env.apk_path }}/output-metadata.json" ];then
252- echo -e "<details><summary>File: output-metadata.json</summary>\n\n" >> $GITHUB_STEP_SUMMARY
253- echo -e "\`\`\`json\n$(cat ${{ env.apk_path }}/output-metadata.json)\n\`\`\`\n\n" >> $GITHUB_STEP_SUMMARY
254- echo -e "</details>\n\n" >> $GITHUB_STEP_SUMMARY
258+ echo -e "<details><summary>File: output-metadata.json</summary>\n\n" >> " $GITHUB_STEP_SUMMARY"
259+ echo -e "\`\`\`json\n$(cat ${{ env.apk_path }}/output-metadata.json)\n\`\`\`\n\n" >> " $GITHUB_STEP_SUMMARY"
260+ echo -e "</details>\n\n" >> " $GITHUB_STEP_SUMMARY"
255261 fi
256262
257- echo -e "\n\n---" >> $GITHUB_STEP_SUMMARY
263+ echo -e "\n\n---" >> " $GITHUB_STEP_SUMMARY"
258264
259265 - name : " Send Failure Notification"
260266 if : ${{ failure() && github.event_name == 'release' }}
261- uses : sarisia/actions-status-discord@v1
267+ uses : sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
262268 with :
263269 webhook : ${{ secrets.DISCORD_WEBHOOK }}
0 commit comments