Generate demo GIFs #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate demo files | |
on: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '0 12 1-7 * 6' | |
jobs: | |
generate-gif-cron: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ss_15_tps_80 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started/quickstart/be-social" | |
save_path: '/docs/images' | |
file_format: webp | |
file_name: ss_15_tps_80 | |
scroll_step: 15 | |
time_per_frame: 80 | |
window_width: 1280 | |
window_height: 720 | |
- name: ss_25_tps_100 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started" | |
save_path: '/docs/images' | |
file_name: ss_25_tps_100 | |
scroll_step: 25 | |
time_per_frame: 100 | |
- name: ss_50_tps_50 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started" | |
save_path: '/docs/images' | |
file_name: ss_50_tps_50 | |
scroll_step: 50 | |
time_per_frame: 50 | |
- name: ss_50_tps_100 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started" | |
save_path: '/docs/images' | |
file_name: ss_50_tps_100 | |
scroll_step: 50 | |
time_per_frame: 100 | |
- name: ss_50_tps_200 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started" | |
save_path: '/docs/images' | |
file_name: ss_50_tps_200 | |
scroll_step: 50 | |
time_per_frame: 200 | |
- name: animated_no_scroll | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://github.com/signup" | |
save_path: "/docs/images" | |
file_name: animated_no_scroll | |
no_scoll: true | |
time_per_frame: 100 | |
time_between_frames: 100 | |
number_of_frames: 50 | |
window_width: 1280 | |
window_height: 720 | |
- name: Archive GIFs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Generated GIFs | |
path: | | |
./docs/images/* |