Skip to content

fix thing

fix thing #28

Workflow file for this run

name: Upload to GitHub Pages
on:
push:
branches: ["master"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install SSG
run: sudo apt-get install ruby jekyll ruby-jekyll-feed
- name: Install exiftool
run: sudo apt-get install exiftool ruby-mini-exiftool webp
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Checkout photos
uses: actions/checkout@v4
with:
repository: 's7uck/photos'
path: './photos'
- name: Build site
# Outputs to the './_site' directory by default
run: jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Create compressed versions of each photo
working-directory: './photos'
run: for file in **/**/*; do cwebp "$file" -o "${file%.*}.webp" -size 524288 || continue; done
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4