Skip to content

Deploy to GitHub Pages #23

Deploy to GitHub Pages

Deploy to GitHub Pages #23

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
env:
NODE_VERSION: lts/*
jobs:
deploy:
name: Deploying
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Code Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Run Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
publish_branch: gh-pages