Open muznyo opened 2 years ago
Could you provide an example repo
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.
skyline emulator is another example, they only provide packages through github actions.
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.
If you don't want to use their fdroid or play release, you also need actions for https://github.com/TrianguloY/UrlChecker
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 }}
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.
Any update here?
+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
Yeah, this feature would cause me to switch entirely from fdroid and mobilism
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
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.
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
Some repositories use Github Actions for releasing prerelease packages instead of prerelease section in releases page. It would be great to support it!