release.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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, android-app-certs]
  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. fetch-depth: 0
  19. - name: Decode Secret Signing Configuration
  20. uses: https://gitea.angry.im/actions/base64-to-file@v1
  21. with:
  22. fileName: keystore.properties
  23. fileDir: ${{ env.GITHUB_WORKSPACE }}
  24. encodedString: ${{ secrets.OPENEUICC_SIGNING_CONFIG }}
  25. - name: Set up JDK 17
  26. uses: https://gitea.angry.im/actions/setup-java@v3
  27. with:
  28. java-version: '17'
  29. distribution: 'temurin'
  30. - name: Setup Android SDK
  31. uses: https://gitea.angry.im/actions/setup-android@v3
  32. - name: Build Release APK (Unprivileged / EasyEUICC only)
  33. run: ./gradlew --no-daemon :app-unpriv:assembleRelease
  34. - name: Create Release
  35. uses: https://gitea.angry.im/actions/forgejo-release@v1
  36. with:
  37. direction: upload
  38. release-dir: app-unpriv/build/outputs/apk/release
  39. url: https://gitea.angry.im
  40. token: ${{ secrets.FORGEJO_TOKEN }}
  41. # Release details are expected to be edited manually
  42. release-notes: TBD
  43. prerelease: 'true'