Skip to content

feat: add fx cli json viewer #15

feat: add fx cli json viewer

feat: add fx cli json viewer #15

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'docs/**/*'
pull_request:
branches:
- master
paths:
- 'docs/**/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: "22"
- name: Install bun
run: curl -fsSL https://bun.sh/install | bash
- name: Add bun to PATH
run: echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Install dependencies
run: cd docs && bun install
- name: Build the documentation
run: cd docs && npx nuxt build --preset github_pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.output/public
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
id: deployment
uses: actions/deploy-pages@v4