-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create all packages on release #683
Conversation
I've copied the Android setup for the ssh secret, but it seems we will need to add the Mozilla secret as well, and I don't have the Repo permissions to add a secret at Repo level. @mossroy Shall we leave this setup for later development, and not delay the current release? |
If you're in the mood of trying to use Github Actions for that, it would be a great starting point for #590 Regarding .click packages, it was easier on Travis as it used an old ubuntu version, where the packages were available in standard repos. Regarding the command-line to run, have a look at the one of Travis : last lines of https://github.com/kiwix/kiwix-js/blob/master/.travis.yml. You probably miss the |
@mossroy I would like to merge this to master for testing. The way I shall test is to use the -d dryrun switch, which I have set in this branch, and I will manually run the action to debug it, i.e. without creating a release. If you are able to look over the code and offer any advice about the linux commands, that would be helpful -- and in particular to check that the code will in fact run as a "dry run" (i.e. I haven't misunderstood the syntax). However, if you haven't got time to look at the code, then just let me know if I can merge this to master for testing (i.e. approve it). |
And please note that if this is merged to master, you will need to rename your |
Sorry, I won't have time to review the code this evening or tomorrow. |
Reopening this branch because I think I can see a way to debug the action from a branch rather than from master. |
Even when explicitly choosing to run the action from this branch (Actions tab -> run action -> select branch), it still runs the code on master. Strange. So @mossroy it seems that to debug properly I will have to push all my debugging changes to master, which could be a few commits that will pollute the commit log (because I only know what to commit after a failure, and some commits will be trial-and-error). I could fix that afterwards by resetting master to commit 4a8efd4 and then force pushing a single commit with all changes once I have clean code. I know force pushing to "rewrite history" is usually frowned upon, but with only two active contributors here, maybe it's OK in order to have a clean commit log? Clearly you'd have to hard-reset your master branch after that. If you know a better way to do it, let me know! |
You can go ahead, just be careful when your force-push on master |
@mossroy FYI I found out how to run the script from a branch (actually it was working first time, I just thought it had failed for the wrong reason), so I've cleaned up master, and am now experimenting on the branch that this PR was made from (but commits don't show up in this PR, because already merged). It's really tricky to get the commands right, with the interaction between YAML and bash, especially as I don't know syntax for either well... |
@mossroy I thought we might use this release to test a GitHub Action that could run
create_all_packages.sh
on publishing a source code release (and creating a tag), once we've added the secret in the approved way.However, I've just realized that no doubt this script will run into the same problems I had in terms of access to commands to build the .click package, and maybe that's not easy to solve.
The information on adding encrypted secret files is here: https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets .
Is it worth trying to do this for this release, or is it a future project?