add doc build gh action
This commit is contained in:
parent
1e8e218da1
commit
02d05ec43b
1 changed files with 34 additions and 0 deletions
34
.github/workflows/build-docs.yml
vendored
Normal file
34
.github/workflows/build-docs.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: 'docs-publish'
|
||||
on:
|
||||
push:
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
- name: Build docs
|
||||
run:
|
||||
bun docs-build
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v2
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
# Upload entire repository
|
||||
path: './build'
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
||||
Loading…
Reference in a new issue