Skip to content

Commit

Permalink
Merge pull request #19 from tijdschriftdefilosoof/fix-yaml
Browse files Browse the repository at this point in the history
Yaml is whack
  • Loading branch information
PSJ-Sokolov authored Mar 18, 2024
2 parents 508aee3 + b3d8116 commit 589d544
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 33 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/extract-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ jobs:
extract-coverpages:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
- name: "Checkout project"
uses: actions/checkout@v2
- name: "Set up Python"
uses: actions/setup-python@v2

- name: "Install dependencies"
run: |
echo "Installing and upgrading pip..."
python -m pip install --upgrade pip
echo "Installing pdf2image..."
pip install pdf2image # For extracting coverpages
- name: Extract coverpages run python script
run: python3 extract-humbnails.py
- name: "Extract coverpages run python script"
run: python3 extract-humbnails.py

- name: Commit and push changes
run: |
- name: "Commit and push changes"
run: |
git config --local user.email "
git config --local user.name "GitHub Action"
git add img
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/regenerate-gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,18 @@ jobs:
add-new-thumbnails-to-gallery:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: "Checkout project"
uses: actions/checkout@v2
- name: "Set up Python"
uses: actions/setup-python@v2

- name: Update index.html with new images.
run: |
- name: "Update index.html with new images."
run: |
echo "Updating index.html with new images."
python3 generate-index.py
- name: Commit changes
run: |
- name: "Commit changes"
run: |
git config --local user.email "
git config --local user.name "GitHub Action"
git add index.html
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/regnerate-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,18 @@ jobs:
update-index-html-from-template-html:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: "Checkout project"
uses: actions/checkout@v2
- name: "Set up Python"
uses: actions/setup-python@v2

- name: Update index.html from new template.html
run: |
- name: "Update index.html from new template.html"
run: |
echo "Updating index.html from new template.html"
python3 generate-index.py
- name: Commit changes
run: |
- name: "Commit changes"
run: |
git config --local user.email "
git config --local user.name "GitHub Action"
git add index.html
Expand Down

0 comments on commit 589d544

Please sign in to comment.