-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 907 Bytes
/
pages.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
name: Build and deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: [master]
permissions:
contents: write
env:
ENVIRONMENT: production
jobs:
build:
name: Build and deploy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
name: checkout repository
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: documentation/package-lock.json
- run: npm ci
name: npm ci
working-directory: documentation
- run: npm run deploy
name: npm run deploy
working-directory: documentation
- name: Disable Jekyll
run: touch documentation/out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: documentation/out
commit-message: "chore: deploy latest docs"