Skip to content

Merge pull request #99 from raydak-labs/docs/docu #15

Merge pull request #99 from raydak-labs/docs/docu

Merge pull request #99 from raydak-labs/docs/docu #15

Workflow file for this run

name: Documentation
on:
push:
branches: [main]
paths:
- docs/**
pull_request:
branches: [main]
paths:
- docs/**
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install & build
working-directory: docs
run: |
pnpm i
pnpm build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: ./docs/build
# Deploy job
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action