Skip to content

Merge pull request #29 from hivepress/hotfix #100

Merge pull request #29 from hivepress/hotfix

Merge pull request #29 from hivepress/hotfix #100

Workflow file for this run

name: Compile assets
on:
push:
branches-ignore: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Compile LESS
uses: hivepress/action-compile-assets/[email protected]
with:
target: 'assets/css/*.less'
- name: Minify assets
uses: hivepress/[email protected]
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git diff --quiet HEAD || (git commit -am "Compile assets" && git push)