Skip to content

Commit

Permalink
Create minify.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MalifaciousGames committed Oct 30, 2023
1 parent 1d67843 commit 89294b4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/minify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Minify Dates
on: [push]
jobs:
Minify:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so auto-minify job can access it
- uses: actions/checkout@v2

- name: Auto Minify
uses: nizarmah/auto-minify@v2.1
with:
maxdepth: 2
overwrite: true

# Auto commits minified files to the repository
# Ignore it if you don't want to commit the files to the repository
- name: Auto committing minified files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}

0 comments on commit 89294b4

Please sign in to comment.