Skip to content

Minify Code

Minify Code #12

Workflow file for this run

name: Minify
run-name: Minify Code
on:
push:
branches: ['main']
permissions:
contents: write
concurrency:
group: "minify"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Build
run: |
npm i
npm run build
cp ./CNAME ./dist/CNAME
cd dist
touch .nojekyll
- name: Minify Code
uses: Lenni009/minify-js@main
with:
directory: 'dist/'
overwrite: true
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: . # The folder the action should deploy.