android-ocr icon indicating copy to clipboard operation
android-ocr copied to clipboard

[suggestion] Releasing the apk here on Github

Open EdoSecco opened this issue 2 years ago • 2 comments

I use Obtainium and it would be great if you publish the apk in the release section.

Thank you!

EdoSecco avatar May 26 '23 21:05 EdoSecco

I think adding the following to the android.yml may work:

      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: ${{ github.ref }}
          release_name: Release ${{ github.ref }}
          draft: false
          prerelease: false
      - name: Upload Release Asset
        id: upload-release-asset 
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: ./app/build/outputs/apk/debug/AndroidOCR-debug.apk
          asset_name: AndroidOCR-debug.apk
          asset_content_type: application/vnd.android.package-archive

Boggin avatar Feb 23 '24 13:02 Boggin