release.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 11
  13. uses: actions/setup-java@v3
  14. with:
  15. distribution: temurin
  16. java-version: 11
  17. - name: Grant execute permission for gradle
  18. run: chmod +x gradlew
  19. - name: Build the SDK
  20. run: ./gradlew buildSdk -Ptag_name=${{ github.ref_name }}
  21. - name: Build the JDKs
  22. run: bash download-jdks.sh
  23. working-directory: jdks
  24. - name: Override Harness (custom icon)
  25. run: ./gradlew overrideHarness -Ptag_name=${{ github.ref_name }}
  26. - name: Build Installers
  27. run: ant -Dstorepass="$NBM_SIGN_PASS" -Dpack200.enabled=true set-spec-version build-installers unset-spec-version
  28. env:
  29. BUILD_X86: true
  30. BUILD_X64: true
  31. BUILD_OTHER: true
  32. - name: Fix Platform Independent Build
  33. run: ./gradlew fixPlatformIndependent -Ptag_name=${{ github.ref_name }}
  34. - name: Create Release
  35. uses: softprops/action-gh-release@v1
  36. with:
  37. files: dist/jmonkeyplatform*.*
  38. tag_name: ${{ github.ref }}
  39. name: Release ${{ github.ref }}
  40. env:
  41. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}