Skip to content

New view route for basic blob dashboard #35

New view route for basic blob dashboard

New view route for basic blob dashboard #35

Workflow file for this run

name: Deploy Vuepress
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
diff:
runs-on: [ubuntu-latest]
outputs:
isDoc: ${{ steps.diff.outputs.isDoc }}
steps:
- uses: actions/checkout@v4
- name: Detect Changes
uses: './.github/actions/diffs'
id: diff
deploy-gh-pages:
needs: diff
if: ${{ (needs.diff.outputs.isDoc == 'true') || (github.event_name == 'workflow_dispatch') }}
runs-on: ubuntu-latest
steps:
# Note: fetch-depth 0 is required to get the whole history, which is used to
# generate the contributors list.
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Copy pnpm dependency files
run: |
cp -f $GITHUB_WORKSPACE/docs/ci/pnpm-lock.yaml.ci $GITHUB_WORKSPACE/docs/pnpm-lock.yaml
cp -f $GITHUB_WORKSPACE/docs/ci/package.json.ci $GITHUB_WORKSPACE/docs/package.json
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 'latest'
run_install: false
package_json_file: 'docs/package.json'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: 'docs/pnpm-lock.yaml'
- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
cd docs
pnpm install .
pnpm run docs:build
> src/.vuepress/dist/.nojekyll
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
# This is the branch where the docs are deployed to
branch: gh-pages
folder: docs/src/.vuepress/dist