docs: migrate wiki content to docs site (#230)

This commit is contained in:
Gareth
2024-04-18 00:10:03 -07:00
committed by GitHub
parent 5d8633c6d2
commit e791e31b91
21 changed files with 17316 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Docs
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install dependencies
run: npm install --prefix ./docs
- name: Build
run: npm run generate --prefix ./docs
- name: Fix permissions
run: |
chmod -c -R +rX "./docs/dist/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs/dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4