-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (42 loc) · 1.07 KB
/
deploy-docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Deploy Docs"
on:
pull_request:
push:
branches:
- "*"
paths:
- .github/workflows/deploy-docs.yaml
- docs/**
- public/**
- package.json
workflow_dispatch:
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# with:
# submodules: true
- uses: actions/checkout@v3
with:
repository: voxelum/minecraft-launcher-core-node
path: docs/en/core
ref: 'gh-pages'
- uses: pnpm/[email protected]
with:
version: 8.2.0
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
- name: "Install"
run: "pnpm i"
- name: "Build"
run: "pnpm run docs:build"
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
working-directory: "./docs/.vitepress"
vercel-args: '--prod ./dist'
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.DOC_PROJECT_ID }}