Skip to content

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

Build and deploy static site and JSON schemas to GitHub Pages

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

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
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm i
- name: build
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