mirror of
https://github.com/CompeyDev/rusty-luau.git
synced 2024-12-13 05:20:41 +00:00
chore(actions): add docs action
Includes a GitHub Action to automatically deploy a documentation site on commits.
This commit is contained in:
parent
058877513c
commit
ea8bd316de
1 changed files with 46 additions and 0 deletions
46
.github/workflows/docs.yaml
vendored
Normal file
46
.github/workflows/docs.yaml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
name: Docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install PNPM
|
||||||
|
uses: pnpm/action-setup@v3
|
||||||
|
|
||||||
|
- name: Install Node
|
||||||
|
uses: actions/setup-node@v4.0.2
|
||||||
|
with:
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- name: Install Moonwave CLI
|
||||||
|
run: pnpm i -g moonwave
|
||||||
|
|
||||||
|
- name: Build static site
|
||||||
|
run: alias npm=pnpm && moonwave build
|
||||||
|
|
||||||
|
- name: Setup GitHub pages
|
||||||
|
uses: actions/configure-pages@v3
|
||||||
|
|
||||||
|
- name: Upload repository artifact
|
||||||
|
uses: actions/upload-pages-artifact@v2
|
||||||
|
with:
|
||||||
|
path: './build'
|
||||||
|
|
||||||
|
- name: Deploy to GitHub pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v2
|
Loading…
Reference in a new issue