Obtainium icon indicating copy to clipboard operation
Obtainium copied to clipboard

Github Actions support

Open muznyo opened this issue 3 years ago • 22 comments

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

muznyo avatar Nov 09 '22 16:11 muznyo

Could you provide an example repo

ImranR98 avatar Nov 09 '22 17:11 ImranR98

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.

muznyo avatar Nov 09 '22 17:11 muznyo

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

LuanVSO avatar May 04 '23 01:05 LuanVSO

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.

momobobe avatar May 19 '23 14:05 momobobe

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

BHydden avatar May 21 '23 00:05 BHydden

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 }}

schklom avatar May 21 '23 12:05 schklom

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.

JoeloJoestar avatar May 26 '23 08:05 JoeloJoestar

Any update here?

WhoMI7 avatar Jul 26 '23 09:07 WhoMI7

+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

ippocratis avatar Sep 11 '23 18:09 ippocratis

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

charliefrance avatar Nov 19 '23 14:11 charliefrance

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

namecallfilter avatar May 03 '24 01:05 namecallfilter

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.

pressRtowin avatar May 13 '24 13:05 pressRtowin