Skip to content

Commit

Permalink
test compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Phaired committed Mar 26, 2024
1 parent ae03db7 commit b3aade1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/compress_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Compress Images on Push to main branch
on:
push:
branches:
- main
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'
jobs:
build:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
compressOnly: true
- name: Create New Pull Request If Needed
if: steps.calibre.outputs.markdown != ''
uses: peter-evans/create-pull-request@v4
with:
title: Compressed Images
branch-suffix: timestamp
commit-message: Compressed Images
body: ${{ steps.calibre.outputs.markdown }}
File renamed without changes
2 changes: 1 addition & 1 deletion src/content/projects/NBodySimulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'N-Body Simulation MPI'
description: "C++ program using MPI for nbody simulation"
pubDate: 'Jan 11 2024'
heroImage: '/nbody-hero.png'
heroImage: '/nbody/nbody-hero.png'
---
## N-Body Simulation

Expand Down

0 comments on commit b3aade1

Please sign in to comment.