-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 942 Bytes
/
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
name: Build CSS
on:
#push:
# branches: [ "main" ]
#pull_request:
# branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}
jobs:
compile-scss:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GHT }}
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: './browser-logos.scss'
destination: './dist/browser-logos.css'
outputStyle: 'expanded'
- name: Auto Minify
uses: nizarmah/[email protected]
with:
output: './dist'
directory: './dist/browser-logos.css'
- name: Auto committing minified files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Github Action: Auto Minified CSS"
branch: ${{ github.ref }}