Site: update site structure and add architecture page (#2675)

* remove blog

* fix: license

* chore: bump docusaurus

* separate benchmark page

* move to sub folder

* fix blog path

* Chore: update site

* fix: only deploy on push and dispatch

* fix: on:

* ci: merge workflow

* ci: fix if

* refactor: dump preset
This commit is contained in:
Jonathan Ho
2022-12-04 22:36:10 +08:00
committed by GitHub
parent ef452b5d54
commit 987b4058cb
56 changed files with 7578 additions and 5162 deletions

View File

@@ -6,9 +6,13 @@ name: Deploy Docs Site
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
branches: ["main"]
paths:
- "site/**"
pull_request:
branches: [ "main" ]
branches: ["main"]
paths:
- "site/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -23,6 +27,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: Build Docusaurus
runs-on: ubuntu-latest
defaults:
run:
@@ -48,6 +53,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
steps:
- name: Deploy to GitHub Pages
id: deployment

View File

@@ -1,23 +0,0 @@
name: Test Docusaurus build
on:
pull_request:
paths:
- "site/**"
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: npm
cache-dependency-path: site/package-lock.json
- name: Test build
working-directory: site
run: |
npm ci
npm run build