From 02e7a898d4521eb493100b463a319b2744979828 Mon Sep 17 00:00:00 2001 From: niclaz <83479948+niclaz@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:32:37 +0200 Subject: [PATCH] New worflow -generating thumbnails for people - people-thumbs.yml --- .github/workflows/people-thumbs.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/people-thumbs.yml diff --git a/.github/workflows/people-thumbs.yml b/.github/workflows/people-thumbs.yml new file mode 100644 index 0000000..189e1b2 --- /dev/null +++ b/.github/workflows/people-thumbs.yml @@ -0,0 +1,33 @@ +name: Generate people thumbnails +# This file manages the workflow from generating the .webp thumbnails for deployment from files in /src/people/_images + +on: + push: + branches: [ main ] + workflow_dispatch: + +permissions: + contents: write + id-token: write + pages: write + actions: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v4 + + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run image optimisation script + run: make img-opt + env: + GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_SECRET }} + + - uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions