Skip to content

Build packages before deploy #4

Build packages before deploy

Build packages before deploy #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: pnpm install
- run: pnpm -F packages/* build
- run: NUXT_APP_BASE_URL=/vue-split-panel/ pnpm -F docs build --preset github_pages
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./.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