Skip to content

Build Code

Build Code #3

Workflow file for this run

name: Build
run-name: Build Code
on:
push:
branches: ['main']
permissions:
contents: write
concurrency:
group: "build"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Build App
run: |
npm ci
echo -n 'VITE_DISCORD_WEBHOOK=' > .env
echo '${{ secrets.DISCORD_WEBHOOK }}' | base64 | tr -d "\n\r" >> .env
npm run build
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: dist # The folder the action should deploy.