Skip to content

feat: add GitHub Actions workflow for documentation deployment #1

feat: add GitHub Actions workflow for documentation deployment

feat: add GitHub Actions workflow for documentation deployment #1

Workflow file for this run

name: Deploy Documentation Site
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
permissions: {}

Check failure on line 13 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
jobs:
build:
permissions:
contents: write
name: Build & Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Pages
uses: actions/configure-pages@v5
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun run docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4