Skip to content

Commit

Permalink
Update CD workflow: Upload zip instead of jar asset
Browse files Browse the repository at this point in the history
Missing zip asset prevented the Flathub build bot from auto-updating
the Linux package.
  • Loading branch information
Argent77 committed Dec 4, 2024
1 parent 7b22a37 commit 1cf5e11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1cf5e11

Please sign in to comment.