Skip to content

Build and deploy static site and JSON schemas to GitHub Pages #18

Build and deploy static site and JSON schemas to GitHub Pages

Build and deploy static site and JSON schemas to GitHub Pages #18

Workflow file for this run

name: Build and deploy static site and JSON schemas to GitHub Pages
on:
# push:
# branches: ["master"]
workflow_dispatch:
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm i
- name: Build site and JSON schemas
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: pnpm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4