-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (46 loc) · 1.19 KB
/
Copy pathdocs-deploy.yml
File metadata and controls
54 lines (46 loc) · 1.19 KB
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
49
50
51
52
53
54
# Deploys the documentation to GitHub Pages
name: docs-deploy
on:
push:
branches:
- main
paths:
- 'docs/**'
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install node and pnpm
uses: smartcontractkit/.github/actions/setup-nodejs@setup-nodejs/v1
with:
pnpm-version: 11.1.1
package-json-directory: ./docs
- name: Build docs
run: pnpm -C ./docs build
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./docs/build
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5