Skip to content

Merge pull request #8 from fvrvz/restructure #2

Merge pull request #8 from fvrvz/restructure

Merge pull request #8 from fvrvz/restructure #2

Workflow file for this run

name: Deploy Docs to GitHub Pages
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: |
if [ -f pnpm-lock.yaml ]; then
pnpm install --frozen-lockfile
else
pnpm install --no-frozen-lockfile
fi
- name: Build NoStyle CSS
run: pnpm --filter nostyle-css run build
- name: Generate static docs
run: pnpm --filter docs-site-nuxt run generate
env:
NUXT_APP_BASE_URL: /nostyle-css/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs-site-nuxt/.output/public
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4