release.yml 1.5 KB

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