-
Notifications
You must be signed in to change notification settings - Fork 9
Build and deploy page via CI #14
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
Conversation
Looks good. Will the website with index.html in deploy/ ? |
b00c1d0
to
87001f1
Compare
I've just tested the whole thing in my fork of the repo and it just worked and deployed the whole site to my personal gh page. I completely removed the old build-site script and replaced it with the new one:
If you prefer I could also split the commit, I just thought a clean git history is not that important for this repo. |
87001f1
to
03f0e50
Compare
- push (e.g. accepting a PR) - manually via Actions tab - potentially in the future via webhook triggered by labwc
03f0e50
to
0f39cbc
Compare
Sweet, seems to work :) And https://labwc.github.io doesn't seem broken either + it was indeed rebuilt (can be seen on the menu font still being sans-serif even when in a man page). So now just merging a PR with modification in src/ should automatically rebuild the website and deploy it. |
Yes. Amazing. I kept looking for the html files in deploy/ but it seems to work without them. This is a really nice setup. Thanks for researching+implementing. |
Now all that's left is to add another CI job to the main repo on pushes that checks if any of the new commits include changes to one of the man pages and if yes triggers a webhook in this repository which then automatically triggers the new CI job here. |
Cool. |
I could throw a README into .github/workflows/ for both repositories. |
That would ideal |
PS. My IRC bouncer is down so can't connect at the moment. |
Alright, will cook something up in the next days.
Oh noes. Maybe sr.ht would be an alternative? I think they only offer bouncer accounts for paid members though, or maybe they would be up for supporting labwc with a bouncer account or two. |
This is the rough plan so far, the actual CI build isn't yet implemented. Still need to figure out how custom site pushes work.
Once we actually want to use this we'll likely have to change the repo config to deploy from theDoesn't look like we have to change that, but instead have to change something to use actions for deployments.main
branch anddeploy
directory but I didn't yet investigate all the details.So what does this do so far?
deploy
directoryimg
subfolder in theredeploy
directorylabwc/
deploy/*.html