mirror of
https://github.com/starship/starship.git
synced 2024-11-07 08:54:50 +01:00
7485c90c9f
* feat(docs): move to vitepress * change up hero styles to match existing site * A bit more style tweaking * Replace stylus with plain CSS * improve unicode-range value for nerdfont --------- Co-authored-by: Matan Kushner <hello@matchai.dev>
34 lines
854 B
YAML
34 lines
854 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@v4
|
|
|
|
- name: Setup | Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
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 }}
|