forked from NearInfinityBrowser/NearInfinity
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CD workflow: Upload zip instead of jar asset
Missing zip asset prevented the Flathub build bot from auto-updating the Linux package.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 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 |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
id: ni-build | ||
run: | | ||
ant -noinput -buildfile build.xml | ||
zip -r NearInfinity.zip NearInfinity.jar | ||
echo "NI_VERSION=$(java -jar "NearInfinity.jar" -version 2>/dev/null | grep -Eo '[0-9]{8}')" >> "$GITHUB_OUTPUT" | ||
# Required internally to build the installer packages | ||
|
@@ -48,9 +49,9 @@ jobs: | |
uses: svenstaro/[email protected] | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: NearInfinity.jar | ||
file: NearInfinity.zip | ||
tag: ${{ github.ref || github.event.release.tag_name }} | ||
asset_name: NearInfinity-${{ steps.ni-build.outputs.NI_VERSION }}.jar | ||
asset_name: NearInfinity-${{ steps.ni-build.outputs.NI_VERSION }}.zip | ||
overwrite: true | ||
|
||
# Build and upload installer versions for Windows, macOS-x86_64 and macOS-arm64 | ||
|