release.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. on:
  2. workflow_dispatch:
  3. push:
  4. tags:
  5. - v*
  6. jobs:
  7. release-linux:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. - uses: actions/setup-java@v3
  12. with:
  13. distribution: 'temurin'
  14. java-version: '17'
  15. - shell: bash
  16. run: ./gradlew linuxX64Binaries -Prelease
  17. - shell: bash
  18. run: ./gradlew linuxArm64Binaries -Prelease
  19. - shell: bash
  20. run: ./gradlew linuxX64DistTar linuxArm64DistTar
  21. - if: startsWith(github.ref, 'refs/tags/v')
  22. uses: softprops/action-gh-release@v1
  23. with:
  24. files: |
  25. build/distributions/*
  26. release-macos:
  27. runs-on: macos-latest
  28. steps:
  29. - uses: actions/checkout@v3
  30. - uses: actions/setup-java@v3
  31. with:
  32. distribution: 'temurin'
  33. java-version: '17'
  34. - shell: bash
  35. run: ./gradlew macosX64Binaries -Prelease
  36. - shell: bash
  37. run: ./gradlew macosArm64Binaries -Prelease
  38. - shell: bash
  39. run: ./gradlew macosX64DistZip macosArm64DistZip
  40. - if: startsWith(github.ref, 'refs/tags/v')
  41. uses: softprops/action-gh-release@v1
  42. with:
  43. files: |
  44. build/distributions/*