1
0
Fork 0
mirror of https://github.com/SunRed/theme-dark-arc-gitea.git synced 2024-10-22 23:16:13 +02:00
theme-dark-arc-gitea/.github/workflows/minify.yml
2024-06-27 10:49:42 +02:00

27 lines
600 B
YAML

on:
push:
branches:
- 'main'
paths:
- 'theme-dark-arc.css'
workflow_dispatch:
jobs:
minify:
runs-on: ubuntu-latest
steps:
- name: check out the repository
uses: actions/checkout@v4
- name: auto minify the files
uses: nizarmah/auto-minify@v3
with:
overwrite: false
maxdepth: 1
- name: auto commit the minified files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "bot: Minify theme"
file_pattern: '*.min.css'
branch: ${{ github.ref }}