2024-04-26 07:19:25 +01:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
2024-04-26 07:35:22 +01:00
|
|
|
defaults:
|
|
|
|
run:
|
2024-04-26 07:41:17 +01:00
|
|
|
shell: bash
|
2024-04-26 07:35:22 +01:00
|
|
|
|
2024-04-26 07:19:25 +01:00
|
|
|
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 Node
|
|
|
|
uses: actions/setup-node@v4.0.2
|
|
|
|
|
|
|
|
- name: Install Moonwave CLI
|
2024-04-26 07:35:22 +01:00
|
|
|
run: npm i -g moonwave
|
2024-04-26 07:19:25 +01:00
|
|
|
|
|
|
|
- name: Build static site
|
2024-04-26 07:35:22 +01:00
|
|
|
run: moonwave build
|
2024-04-26 07:19:25 +01:00
|
|
|
|
|
|
|
- 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
|