Skip to content

Fix: Remove type checking (TODO - actually fix) #24

Fix: Remove type checking (TODO - actually fix)

Fix: Remove type checking (TODO - actually fix) #24

Workflow file for this run

name: Vite Build
on:
push:
branches:
- main # Change this to your main branch name if different
pull_request:
branches:
- main # Change this to your main branch name if different
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20 # Use current LTS
cache: 'npm'
- name: Cache Node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build with Vite
run: npm run build
- name: Add CNAME file
run: echo 'jacly.c2coder.eu' > ./dist/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist