release.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. on:
  2. push:
  3. tags: '*'
  4. env:
  5. # Enable reproducibility-related build system workarounds
  6. REPRODUCIBLE_BUILD: true
  7. jobs:
  8. release:
  9. runs-on: docker
  10. container:
  11. volumes:
  12. - android-app-keystore:/keystore
  13. steps:
  14. - name: Repository Checkout
  15. uses: https://gitea.angry.im/actions/checkout@v3
  16. with:
  17. submodules: recursive
  18. - name: Decode Secret Signing Configuration
  19. uses: https://gitea.angry.im/actions/base64-to-file@v1
  20. with:
  21. fileName: keystore.properties
  22. fileDir: ${{ env.GITHUB_WORKSPACE }}
  23. encodedString: ${{ secrets.OPENEUICC_SIGNING_CONFIG }}
  24. - name: Set up JDK 17
  25. uses: https://gitea.angry.im/actions/setup-java@v3
  26. with:
  27. java-version: '17'
  28. distribution: 'temurin'
  29. - name: Setup Android SDK
  30. uses: https://gitea.angry.im/actions/setup-android@v3
  31. - name: Build Release APK (Unprivileged / EasyEUICC only)
  32. run: ./gradlew --no-daemon :app-unpriv:assembleRelease
  33. - name: Create Release
  34. uses: https://gitea.angry.im/actions/forgejo-release@v1
  35. with:
  36. direction: upload
  37. release-dir: app-unpriv/build/outputs/apk/release
  38. url: https://gitea.angry.im
  39. token: ${{ secrets.FORGEJO_TOKEN }}
  40. # Release details are expected to be edited manually
  41. release-notes: TBD
  42. prerelease: 'true'