mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 07:46:28 +00:00
34 lines
896 B
YAML
34 lines
896 B
YAML
name: Publish Docs
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
publish_docs:
|
|
name: Publish docs to Netlify
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup | Checkout
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
|
|
|
- name: Setup | Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: 'npm'
|
|
cache-dependency-path: docs/package-lock.json
|
|
|
|
- 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 }}
|