Skip to content

Deploy starlight documentation to GitHub Pages #890

Deploy starlight documentation to GitHub Pages

Deploy starlight documentation to GitHub Pages #890

Workflow file for this run

name: Deploy starlight documentation to GitHub Pages
on:
push:
branches: [upload]
workflow_dispatch:
defaults:
run:
working-directory: doc
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-22.04
environment: github-pages
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload site
uses: withastro/action@v0
with:
path: doc
node-version: 20
package-manager: pnpm
pnpm-version: 8.7.x
env:
CUSTOM_SITE_URL: ${{ vars.CUSTOM_SITE_URL }}
CUSTOM_REPO_URL: ${{ vars.CUSTOM_REPO_URL }}
deploy:
needs: build
runs-on: ubuntu-22.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1