SubhamTyagi / android-ocr

Tesseract based OCR for android
Apache License 2.0
365 stars 61 forks source link

[suggestion] Releasing the apk here on Github #96

Open EdoSecco opened 1 year ago

EdoSecco commented 1 year ago

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

Thank you!

Boggin commented 6 months ago

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