-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.84 KB
/
sass-build.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: 🐭 Minify production CSS & HTML files
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_css:
runs-on: ubuntu-latest
steps:
- name: 🚀 Job triggered by a ${{ github.event_name }}.
run: echo "🚀 Job triggered by a ${{ github.event_name }}."
- name: 👀 Checking out ${{ github.ref }}...
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: 🗑️ Remove sourcemapped CSS.
run: rm public/css -r
- name: 🪄 make a new production CSS directory
run: mkdir public/css
- name: 🗜️ compile production CSS from .scss files
uses: gha-utilities/[email protected]
with:
source: |
scss/start.scss
scss/cameo.scss
scss/guillotine/code.scss
scss/guillotine/site.scss
scss/invalid.scss
scss/pretend.scss
scss/sisyphus.scss
scss/wrongest.scss
scss/stats.scss
destination: |
public/css/start.css
public/css/cameo.css
public/css/guillotine.code.css
public/css/guillotine.css
public/css/invalid.css
public/css/pretend.css
public/css/sisyphus.css
public/css/wrongest.css
public/css/stats.css
- name: 🤏 minify HTML
uses: docker://devatherock/minify-js:3.0.0
with:
add_suffix: false # Optional
inclusions: |- # Optional
./index.html
./html/*.html
- name: 🗃️ commit changes to ${{ github.ref }}
uses: elstudio/actions-js-build/commit@v4
with:
commitMessage: generate minified css
- name: 🫠 This job's status is ${{ job.status }}.
run: echo "🫠 This job's status is ${{ job.status }}."