Merge pull request #76 from PabloLec/dependabot/pip/develop/selenium-… #87
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 and update demo GIFs | |
on: | |
push: | |
branches: | |
- 'develop' | |
workflow_dispatch: | |
jobs: | |
generate-and-push-gifs: | |
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: gif | |
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/quickstart/be-social" | |
save_path: '/docs/images' | |
file_name: ss_25_tps_100 | |
scroll_step: 25 | |
time_per_frame: 100 | |
window_width: 1280 | |
window_height: 720 | |
- name: ss_50_tps_50 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started/quickstart/be-social" | |
save_path: '/docs/images' | |
file_name: ss_50_tps_50 | |
scroll_step: 50 | |
time_per_frame: 50 | |
window_width: 1280 | |
window_height: 720 | |
- name: ss_50_tps_100 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started/quickstart/be-social" | |
save_path: '/docs/images' | |
file_name: ss_50_tps_100 | |
scroll_step: 50 | |
time_per_frame: 100 | |
window_width: 1280 | |
window_height: 720 | |
- name: ss_50_tps_200 | |
uses: PabloLec/website-to-gif@develop | |
with: | |
url: "https://docs.github.com/en/get-started/quickstart/be-social" | |
save_path: '/docs/images' | |
file_name: ss_50_tps_200 | |
scroll_step: 50 | |
time_per_frame: 200 | |
window_width: 1280 | |
window_height: 720 | |
- 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@v4 | |
with: | |
name: Generated GIFs | |
path: | | |
./docs/images/* | |
- name: Commit file to GH repo | |
run: | | |
git config --global user.name "PabloLec/website-to-gif" | |
git config --global user.email "[email protected]" | |
git add . | |
git commit -m 'Update demo GIFs' | |
git push |