release.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Build Release
  2. on:
  3. push:
  4. tags: '*'
  5. jobs:
  6. release:
  7. runs-on: [ docker, android-app-certs ]
  8. container:
  9. volumes:
  10. - android-app-keystore:/keystore
  11. steps:
  12. - name: Repository Checkout
  13. uses: https://gitea.angry.im/actions/checkout@v3
  14. with:
  15. submodules: recursive
  16. fetch-depth: 0
  17. - name: Decode Secret Signing Configuration
  18. uses: https://gitea.angry.im/actions/base64-to-file@v1
  19. with:
  20. fileName: keystore.properties
  21. fileDir: ${{ env.GITHUB_WORKSPACE }}
  22. encodedString: ${{ secrets.OPENEUICC_SIGNING_CONFIG }}
  23. - name: Set up JDK 17
  24. uses: https://gitea.angry.im/actions/setup-java@v3
  25. with:
  26. java-version: '17'
  27. distribution: 'temurin'
  28. - name: Setup Android SDK
  29. uses: https://gitea.angry.im/actions/setup-android@v3
  30. - name: Build Release APK (Unprivileged / EasyEUICC only)
  31. run: ./gradlew --no-daemon :app-unpriv:assembleRelease
  32. - name: Copy Debug Symbols to Release Path
  33. run: cp app-unpriv/build/outputs/native-debug-symbols/release/native-debug-symbols.zip app-unpriv/build/outputs/apk/release/
  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'