Skip to content

Add CI

Add CI #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'pnpm'
- run: pnpm install
- run: pnpm verify
- if: github.ref == 'refs/heads/main'
run: pnpm build
- if: github.ref == 'refs/heads/main'
name: Upload page
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4