Build CSS #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |