release.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This Action will build the SDK and if this succeeds, create a github release
  2. name: Release Builds
  3. on:
  4. push:
  5. tags:
  6. - "*"
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Set up JDK 21
  13. uses: actions/setup-java@v3
  14. with:
  15. distribution: temurin
  16. java-version: 21
  17. - name: Install wine
  18. run: sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt install -y xorg xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic wine32:i386 wine makepkg
  19. - name: Grant execute permission for gradle
  20. run: chmod +x gradlew
  21. - name: Build the SDK
  22. run: ./gradlew buildSdk -Ptag_name=${{ github.ref_name }}
  23. - name: Override Harness (custom icon)
  24. run: ./gradlew overrideHarness -Ptag_name=${{ github.ref_name }}
  25. - name: Build Installers
  26. run: ant -Dstorepass="$NBM_SIGN_PASS" -Dpack200.enabled=false set-spec-version build-zip unset-spec-version
  27. - name: Download JDKs for the installers
  28. run: bash download-jdks.sh
  29. working-directory: installers
  30. - name: Build the installers
  31. run: bash build-installers.sh ${{ github.ref_name }} headless
  32. working-directory: installers
  33. - name: Create Release
  34. uses: softprops/action-gh-release@v1
  35. with:
  36. files: |
  37. dist/jmonkeyplatform*.*
  38. dist/jmonkeyengine-sdk*.*
  39. dist/jMonkeyEngine-SDK*.*
  40. tag_name: ${{ github.ref }}
  41. name: Release ${{ github.ref }}
  42. env:
  43. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}