Skip to content

Commit

Permalink
Update extract-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PSJ-Sokolov authored Mar 18, 2024
1 parent d1d0ec3 commit 42a56e2
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/extract-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'pdf/[0-9]*.pdf'

jobs:
extract-coverpages:
extract-coverpages-and-add-to-gallery:
runs-on: ubuntu-latest
steps:
- name: "Checkout project"
Expand All @@ -25,19 +25,8 @@ jobs:
pip install pdf2image # For extracting coverpages
- name: "Extract coverpages run python script"
run: python3 extract-thumbnails.py

add-new-thumbnails-to-gallery:
needs: extract-coverpages
runs-on: ubuntu-latest
steps:
- name: "Checkout project"
uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5

- name: "Update index.html with new images."
run: |
python3 extract-thumbnails.py
echo "Updating index.html with new images."
python3 generate-index.py
Expand All @@ -46,5 +35,5 @@ jobs:
git config --local user.email "y@example.com"
git config --local user.name "GitHub Action"
git add index.html
git commit -m "[CI/CD] Update index.html with new images"
git commit -m "[CI/CD] Added new thumbnail to gallery"
git push

0 comments on commit 42a56e2

Please sign in to comment.