You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
4 weeks ago
|
name: Deploy site
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
with:
|
||
|
persist-credentials: false
|
||
|
submodules: recursive
|
||
|
|
||
|
- name: Configure GitHub Pages
|
||
|
uses: actions/configure-pages@v5
|
||
|
|
||
|
- name: Setup Node
|
||
|
uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: 20
|
||
|
cache: npm
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: npm ci
|
||
|
|
||
|
- name: Build site
|
||
|
run: npm run docs:build
|
||
|
|
||
|
- name: Upload GitHub Pages artifact
|
||
|
uses: actions/upload-pages-artifact@v3
|
||
|
with:
|
||
|
path: docs/.vitepress/dist
|
||
|
|
||
|
# Deployment job
|
||
|
deploy:
|
||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||
|
permissions:
|
||
|
contents: read
|
||
|
pages: write
|
||
|
id-token: write
|
||
|
|
||
|
environment:
|
||
|
name: github-pages
|
||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||
|
runs-on: ubuntu-latest
|
||
|
needs: build
|
||
|
steps:
|
||
|
- name: Deploy to GitHub Pages
|
||
|
id: deployment
|
||
|
uses: actions/deploy-pages@v4
|