Skip to content

Commit

Permalink
feat: add minifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
skifli authored Apr 12, 2024
1 parent 09c5a74 commit fa98a90
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/minifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: minifier

on:
pull_request:
push:
branches:
- main

jobs:
php-cs-fixer:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Minify Action
uses: dra1ex/[email protected]

- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: minified
create_branch: true
commit_message: Apply minifications
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["minified"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down

0 comments on commit fa98a90

Please sign in to comment.