Skip to content

Add github pages workflow #4

Add github pages workflow

Add github pages workflow #4

name: Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
pages: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/[email protected]
with:
version: 8.15.5
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 21
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: apps/web/out