Skip to content

Create ci.yml

Create ci.yml #1

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: deploy github pages
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install nodejs
uses: actions/[email protected]
with:
node-version: "23.x"
- name: install deps
run: npm install
- name: build
run: npm run build
- name: Deploy GitHub Pages site
uses: actions/[email protected]
with:
token: ${{ github.token }}