Skip to content

Merge pull request #1 from kfsoftware/feat/deploy-cli #9

Merge pull request #1 from kfsoftware/feat/deploy-cli

Merge pull request #1 from kfsoftware/feat/deploy-cli #9

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install
- name: Build Docusaurus website
run: |
cd apps/fabriclaunch-docs
bun run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/fabriclaunch-docs/build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'