Skip to content

Build and Deploy

Build and Deploy #2

name: Build and Deploy
on:
release:
types:
- published # Will use gh-pages branch as default
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install and Build
run: |
npm ci
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
token: ${{ secrets.GITHUB_TOKEN }}