Skip to content

Add GitHub Actions workflow for build and deploy #1

Add GitHub Actions workflow for build and deploy

Add GitHub Actions workflow for build and deploy #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "18"
- name: Install Dependencies
run: npm install
- name: Build
run: npm run generate
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output/public