Workflow file for this run
This file contains hidden or 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
| name: Build and Upload Release Assets | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build-and-upload: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build JAR with Gradle | |
| run: ./gradlew build | |
| - name: Build Debian package | |
| run: ./package-deb.sh | |
| - name: Build ZIP archive | |
| run: ./package-zip.sh | |
| - name: Build Windows package with bundled JRE | |
| run: ./package-win.sh | |
| - name: Build macOS package with bundled JRE | |
| run: ./package-macos.sh | |
| - name: Build Linux package with bundled JRE | |
| run: ./package-linux.sh | |
| - name: Upload release assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| ./app/build/libs/app-all.jar | |
| ./numberguessinggame.deb | |
| ./archive.zip | |
| ./NumberGuessingGame-windows.zip | |
| ./NumberGuessingGame-macos.zip | |
| ./NumberGuessingGame-linux.tar.xz |