mirror of
https://github.com/SunRed/theme-dark-arc-gitea.git
synced 2024-10-22 15:06:13 +02:00
27 lines
600 B
YAML
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 }}
|