2023-02-26 02:56:49 +00: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 02:05:37 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-02-26 02:56:49 +00:00
|
|
|
|
|
|
|
- name: Setup | Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
2023-02-26 03:00:16 +00:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: docs/package-lock.json
|
2023-02-26 02:56:49 +00: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:
|
|
|
|
args: deploy --prod --dir=docs/.vuepress/dist
|
|
|
|
env:
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|