Skip to content

Update Demo

Update Demo #13

Workflow file for this run

name: Build and deploy website
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
environment: github-pages # Specify the environment to use the secrets in it
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install
- name: Build website
run: npm run build
- name: Deploy website
uses: peaceiris/[email protected]
with:
personal_token: ${{ secrets.ACTIONS_DEPLOY_KEY }} # Use personal_token instead of github_token
publish_dir: build