Files
Content-Monorepo/.forgejo/workflows/png-thing.yml
2026-04-12 19:54:53 -06:00

44 lines
1.1 KiB
YAML

name: "png tyhingh"
on:
workflow_dispatch:
jobs:
bulk-nuke:
runs-on: technocality
steps:
- name: grab
uses: actions/checkout@v5
with:
fetch-depth: 0
filter: blob:none
- name: install
run: |
if ! command -v cargo &> /dev/null; then
echo "Rust not found. Bootstrapping..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
. "$HOME/.cargo/env"
if ! command -v oxipng &> /dev/null; then
echo "Installing oxipng..."
cargo install oxipng
fi
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: comp
run: |
. "$HOME/.cargo/env"
oxipng -r -o 4 -v --strip all "resourcepacks/"
- name: commit
uses: https://github.com/EndBug/add-and-commit@v9
with:
author_name: forgejo-actions[bot]
author_email: omo50@noreply.nostalgica.net
message: 'chore: bulk'
add: 'resourcepacks/**/*.png'