Skip to content

Commit

Permalink
testing compression of images
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcoll committed Oct 19, 2023
1 parent bb615a3 commit efd7484
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 30 deletions.
58 changes: 28 additions & 30 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
name: Generate Read More related
# name: Generate Read More related

on:
push:
branches:
- automate-read-more
pull_request:
# on:
# push:
# branches:
# - automate-read-more
# pull_request:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
# concurrency:
# group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
# cancel-in-progress: true

jobs:
generate-read-more:
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.13.x
cache: npm
- run: npm install
- run: npm run style
- run: git status
- run: git add .
- run: git status
- uses: stefanzweifel/git-auto-commit-action@v5
# jobs:
# generate-read-more:
# runs-on: "ubuntu-latest"
# permissions:
# contents: write
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# ref: ${{ github.head_ref }}
# - name: Setup node
# uses: actions/setup-node@v3
# with:
# node-version: 16.13.x
# cache: npm
# - run: npm install
# - run: node compute-embeddings.js
# - run: node blog-metadata.mjs > related.yml
# # - uses: stefanzweifel/git-auto-commit-action@v5
24 changes: 24 additions & 0 deletions .github/workflows/crush-pics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Crush images
on:
# push:
# branches:
# - automate-read-more
pull_request:
branches:
- automate-read-more
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.gif'
jobs:
crush:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Crush images
uses: crush-pics/crush-pics-github-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-key: ${{ secrets.CRUSH_API_KEY }}
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'http://rubygems.org'
gem 'github-pages'

gem "jekyll-paginate"

gem "tzinfo-data", "~> 1.2022"

Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ safe: true
twitter_handle: Scott_Logic
plugins:
- jekyll-redirect-from
- jekyll-paginate
kramdown:
input: kramdown
paginate: 20
Expand Down
1 change: 1 addition & 0 deletions style.css

Large diffs are not rendered by default.

0 comments on commit efd7484

Please sign in to comment.