ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
7.57k stars 165 forks source link

Github Actions support #102

Open muznyo opened 1 year ago

muznyo commented 1 year ago

Some repositories use Github Actions for releasing prerelease packages instead of prerelease section in releases page. It would be great to support it!

ImranR98 commented 1 year ago

Could you provide an example repo

muznyo commented 1 year ago

For example Lawnchair Launcher

Normally you need github account to download artifacts in actions, but it could use existing Personal Access Token which you used to bypass rate limit.

LuanVSO commented 1 year ago

skyline emulator is another example, they only provide packages through github actions.

momobobe commented 1 year ago

One way is to use user-entered GitHub token for accessing, while another better way is by the assistance from http://nightly.link/.

The biggest problem is that, many Action build artifacts are zip files with apk in, so must decompress them before seeing the actual apk (and maybe even none inside). But yet I feel this feature long-term worthwhile.

BHydden commented 1 year ago

If you don't want to use their fdroid or play release, you also need actions for https://github.com/TrianguloY/UrlChecker

schklom commented 1 year ago

Here is a way to make a repository release the apk in a GitHub Action. The code to release an apk is not very complicated, one can make a pull request for it on any repository.

That's how I do it, and it works well. Note that I don't develop apps, I simply build them from source or download them from non-GitHub places, and release them. Example 1: build and release an apk https://github.com/schklom/Gadgetbridge-osm with the GitHub Actions sync and build+release Example 2: download and release an apk https://github.com/schklom/CubeACR-apk with the GitHub Action download + release

A possible GitHub Action release

      - name: Release apk
        uses: softprops/action-gh-release@v1
        with:
          tag_name: "${{ env.version }}"
          body: "app-main-debug.apk is the Gadgetbridge file with osmand-experiments patches"
          files: |
             ./app/build/outputs/apk/main/debug/app-main-debug.apk
          repository: "schklom/Gadgetbridge-osm"
          token: ${{ secrets.PAT_GITHUB_ACTION }}
JoeloJoestar commented 1 year ago

Another example is https://github.com/FreeTubeApp/FreeTube Each build action (example) publishes well-distributed artifacts, including android APKs.

It would be super cool if Obtainuim can pull artifact APKs from GitHub actions.

BhaturaGuy commented 1 year ago

Any update here?

ippocratis commented 1 year ago

+1 for this one. There are projects not on fdroid or any repo, like forks of apps with extra features only providing apk's through actions e.g. https://github.com/oguzhane/bitwarden-mobile/actions/runs/6108161757#artifacts

charliefrance commented 10 months ago

Yeah, this feature would cause me to switch entirely from fdroid and mobilism

kaorlol commented 5 months ago

https://github.com/kaorlol/obtainium-artifact-downloader

here is an example of how i used the github api to do basically what this is asking @ImranR98

this should save time

pressRtowin commented 5 months ago

Adding my support to this as well. It would remove the fdroid dependency for so many apps, which is definitely in line with the spirit of Obtainium.

washingleavesandthensome23-434 commented 6 days ago

I gotta agree would be real great , as it would def make life alot easier

I've asked about it here, https://github.com/ImranR98/apps.obtainium.imranr.dev/discussions/251

Would be cool to have a progress update if possible