Skip to content

Commit

Permalink
move minify workflow to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Oct 7, 2024
1 parent 83091df commit d821eb2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/minify_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Minify package

on:
push:
branches: [ "main" ]

jobs:
minify:
runs-on: ubuntu-latest
steps:
- name: check out the repository
uses: actions/checkout@v4

- name: auto minify the files
uses: nizarmah/auto-minify@v3
with:
directory: ./src
output: ./dist
js_engine: uglify-js

- name: auto commit the minified files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "bot: Add auto minified files"
18 changes: 0 additions & 18 deletions .github/workflows/release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,6 @@ on:
required: true

jobs:
minify:
runs-on: ubuntu-latest
steps:
- name: check out the repository
uses: actions/checkout@v4

- name: auto minify the files
uses: nizarmah/auto-minify@v3
with:
directory: ./src
output: ./dist
js_engine: uglify-js

- name: auto commit the minified files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "bot: Add auto minified files"

release:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d821eb2

Please sign in to comment.