Skip to content

Sass Build and CodeQL have different triggers #27

Sass Build and CodeQL have different triggers

Sass Build and CodeQL have different triggers #27

Workflow file for this run

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 }}."