-
Notifications
You must be signed in to change notification settings - Fork 18
48 lines (42 loc) · 1.06 KB
/
deploy-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
47
48
name: Deploy docs
on:
push:
branches: ["master"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: deploy-docs
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
# We need to fetch all tags to build versioned docs
fetch-depth: 0
- name: Retrieve old versions of docs
run: ./util/scripts/build-versioned-docs.sh
- run: npm ci
working-directory: docs
- name: Build documentation
run: npm run build
working-directory: docs
- name: Disable Jykell
run: touch docs/build/.nojekyll
- name: Upload built documentation as artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/build/
deploy:
needs: build
runs-on: ubuntu-20.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1