Skip to content

Commit

Permalink
feat: add GitHub Actions workflow for documentation deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaniraiyn committed Dec 25, 2024
1 parent f41f25f commit a4a09e4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy Documentation Site
on:
push:
branches: ["main"]

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

permissions: {}
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

0 comments on commit a4a09e4

Please sign in to comment.