Script that help you to push your output into your GitHub repo release using github personal access token.
- Fine-grained Github Personal Access Token (Recommended)
- Create github repo to push output files
- Navigate to Settings:
- Click your profile picture in the top-right corner of any GitHub page and select Settings.
- Open Developer Settings:
- Scroll down the left sidebar and click Developer settings.
- Create Token:
- Select Personal access tokens > Fine-grained tokens and click Generate new token.
-
Configure Details: Enter a Token name and select an Expiration date. Under Repository access, select Only select repositories and choose the repo you want to push releases to.
-
Set Permissions: Go to Repository permissions. Find Contents and set the access to Read and write. This is required for creating and managing releases and tags.
-
Optional: If your release process modifies GitHub Actions, grant Workflows write access.
-
Generate and Save: Click Generate token. Copy the token immediately; you will not be able to see it again.
curl -O https://raw.githubusercontent.com/jonjeexe/Github_Release_Uploader/refs/heads/main/Upload.sh && chmod +x Upload.sh
** Before executing script create a token.txt and past Github personal access token in token.txt which you created in previous steps.
./Upload.sh "tag" "repo url" "Release title"
./Upload.sh "v1.0.0" "jonjeexe/Local_Manifests_Eclipse" "First Release"
Manual Method How to pull output to Devspace CLI Simply use the crave pull command inside the same directory as before
- Pull zip of your build
crave pull out/target/product/*/*.zip
- Pull img of your build
crave pull out/target/product/*/*.img
- Then enter into output folder
cd <codename>
then follow previous steps download script create a github personal access token and past into token.txt and run Upload.sh from the dir where is ur build zip.
thank you i hope it help you ♡