Skip to content

poc: Cloud Manager Github Pages Docs #4

poc: Cloud Manager Github Pages Docs

poc: Cloud Manager Github Pages Docs #4

Workflow file for this run

name: Deploy Cloud Manager Docs
on:
push:
branches: [develop]
# clean up these before merging
workflow_dispatch:
pull_request:
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build with VitePress
working-directory: ./docs
run: |
bunx vitepress build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2