Skip to content

Commit

Permalink
I doubt this will actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
AhoyLemon committed Jan 21, 2024
1 parent c7be803 commit d4ac6e6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/minify-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Minify Workflow"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
minify_js:
runs-on: ubuntu-latest

steps:
- name: πŸš€ Job triggered by a ${{ github.event_name }}.
run: echo "πŸš€ Job triggered by a ${{ github.event_name }}."

- name: πŸ›’ Checkout source Git branch
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: 🐁 minify css & html
uses: docker://devatherock/minify-js:3.0.0
with:
add_suffix: false # Optional
inclusions: |- # Optional
/public/css/*.css
/index/html
/html/*.html
- uses: stefanzweifel/git-auto-commit-action@v4
name: "πŸ’Ύ Commit changes with minifications"
with:
commit_message: Minify source code
branch: ${{ github.ref }}

- name: 🫠 This job's status is ${{ job.status }}.
run: echo "🫠 This job's status is ${{ job.status }}."

0 comments on commit d4ac6e6

Please sign in to comment.