rusty-luau/.github/workflows/docs.yaml

57 lines
1.1 KiB
YAML
Raw Normal View History

name: Docs
on:
push:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
defaults:
run:
2024-04-26 07:39:18 +01:00
shell: bash -leo pipefail {0}
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
with:
version: ^9.0.5
- name: Install Node
uses: actions/setup-node@v4.0.2
2024-04-26 07:31:49 +01:00
- name: Register aliases for NPM command
run: |
rc=$HOME/.bashrc
2024-04-26 07:31:49 +01:00
echo 'shopt -s expand_aliases' > $rc
echo 'alias npm="pnpm" ' >> $rc
- name: Install Moonwave CLI
run: npm i -g moonwave
- name: Build static site
run: 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