-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (25 loc) 路 789 Bytes
/
Copy pathminify.yml
File metadata and controls
30 lines (25 loc) 路 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Minify Calendarize Script
run-name: Minify calendarize.js for optimization 馃殌
on:
push:
paths:
- 'calendarize.js'
jobs:
Minify-Calendarize-Script:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
- name: Auto Minify
uses: nizarmah/auto-minify@v3
with:
maxdepth: 1 # Only minify the root directory (where calendarize.js is)
- name: Copy script to extension
run: cp calendarize.min.js chrome-extension/calendarize.min.js
- name: Committing minified files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'GitHub Action: Minify & add calendarize.min.js'