Skip to content
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

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

Open
funilrys opened this issue Dec 25, 2021 · 1 comment
Open

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

funilrys opened this issue Dec 25, 2021 · 1 comment

Comments

@funilrys
Copy link
Owner

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
Copy link
Owner Author

Implementation Note: As @veracioux mentioned in #262:

You can record [the demo] using asciinema as:

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

@funilrys funilrys moved this to Waiting for Triage in #PyFunceble Features Oct 7, 2022
@funilrys funilrys moved this from Waiting for Triage to To do in #PyFunceble Features Oct 7, 2022
@funilrys funilrys moved this to 📋 Backlog in PyFunceble Backlog Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant