Skip to content

Commit

Permalink
Build docs site with GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 committed Dec 1, 2023
1 parent 3cf9f75 commit 34feed6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Documentation
on:
push:
branches: [main]

jobs:
generate:
name: Generate documentation
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun run docs

# TODO: Remove if unnecessary
# - name: Fix permissions
# run: |
# chmod -c -R +rX "docs/" | while read line; do
# echo "::warning title=Invalid file permissions automatically fixed::$line"
# done

- uses: actions/upload-pages-artifact@v2
with:
path: 'docs/'

deploy:
name: Deploy documentation site
needs: generate

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 34feed6

Please sign in to comment.