PyFunceble icon indicating copy to clipboard operation
PyFunceble copied to clipboard

FEATURE: automagically push/update demo to pyfunceble.github.io

Open funilrys opened this issue 3 years ago • 1 comments

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:

  1. clone the PyFunceble/pyfunceble.github.io project
  2. switch to the react-src branch
  3. rewrite the content of the src/data/asciinema_demo.json file.
  4. deploy to GitHub pages.
  5. push changes - made to the react-src branch.

funilrys avatar Dec 25 '21 16:12 funilrys

Implementation Note: As @veracioux mentioned in #262:

You can record [the demo] using asciinema as:

asciinema rec -c 'tuterm landing1.tut -m demo'

funilrys avatar Dec 25 '21 16:12 funilrys