mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
ef2958c61c
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
34 lines
859 B
YAML
34 lines
859 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@v5
|
|
|
|
- name: Setup | Node
|
|
uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 22.19.0
|
|
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/.vitepress/dist
|
|
env:
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|