-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1005 Bytes
/
docs.yml
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
44
45
46
name: Docs publish
on:
push:
paths:
- docs/**
- mkdocs.yml
- .github/workflows/docs.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v4
- name: Install Mkdocs
run: pip install mkdocs-material cairosvg pillow
- name: Build
run: mkdocs build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: site
path: site
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: site
path: site
- name: Deploy to Vercel
run: npx vercel --yes --cwd site --prod --token ${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}