mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
44 lines
1.1 KiB
YAML
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' |