FEATURE: automagically push/update demo to pyfunceble.github.io
Description
As #262 is going to be merged soon, we need to come with a solution in order to get the asciinema demos to the landing page.
As discussed in there, on long term, it may be a good idea to use tuterm to generate more extended demo that we could also automagically push to the landing page.
The best way to achieve this is to make the demo generation part of the Github Action workflow.
Additional context
asciinema (CLI) can read an API token that is located inside ~/.config/asciinema/install-id.
WARNING: ~/.config/asciinema/install-id shouldn't end with a new line.
asciinema (CLI) output should be grep-ed to get the new URL. As far as I could test, there is no way to update the URL within asciinema.org.
From the perspective of this project, an automated GitHub Action Job, should:
- clone the
PyFunceble/pyfunceble.github.ioproject - switch to the
react-srcbranch - rewrite the content of the
src/data/asciinema_demo.jsonfile. - deploy to GitHub pages.
- push changes - made to the
react-srcbranch.
Implementation Note: As @veracioux mentioned in #262:
You can record [the demo] using asciinema as:
asciinema rec -c 'tuterm landing1.tut -m demo'