Skip to content

Commit

Permalink
Create workflow for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
onkofonko committed Jan 25, 2025
1 parent e5a3f51 commit 93c40ab
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/optimize-css.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Optimize CSS

on:
push:
paths:
- public/theme/source.css

jobs:
optimize-css:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install CSSO and CSSO-cli
run: npm install -g csso csso-cli

- name: Optimize CSS
run: csso public/theme/source.css --output public/theme/fixedsource.css

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add public/theme/fixedsource.css
git commit -m 'Optimize theme CSS'
git push

0 comments on commit 93c40ab

Please sign in to comment.