2023-02-26 03:56:49 +01:00
|
|
|
name: Publish Docs
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish_docs:
|
|
|
|
name: Publish docs to Netlify
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Setup | Checkout
|
2024-01-07 03:05:37 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-02-26 03:56:49 +01:00
|
|
|
|
|
|
|
- name: Setup | Node
|
2024-03-03 17:55:30 +01:00
|
|
|
uses: actions/setup-node@v4
|
2023-02-26 03:56:49 +01:00
|
|
|
with:
|
2024-03-03 17:55:30 +01:00
|
|
|
node-version: 20
|
2023-02-26 04:00:16 +01:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: docs/package-lock.json
|
2023-02-26 03:56:49 +01:00
|
|
|
|
|
|
|
- name: Setup | Install dependencies
|
|
|
|
run: npm install
|
|
|
|
working-directory: docs
|
|
|
|
|
|
|
|
- name: Build | Build docs site
|
|
|
|
run: npm run build
|
|
|
|
working-directory: docs
|
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
uses: netlify/actions/cli@master
|
|
|
|
with:
|
2024-03-03 17:55:30 +01:00
|
|
|
args: deploy --prod --dir=docs/.vitepress/dist
|
2023-02-26 03:56:49 +01:00
|
|
|
env:
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|