-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.01 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
41 lines (37 loc) · 1.01 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
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: '22.x'
registry-url: https://npm.pkg.github.com/
scope: '@drawbotics'
cache: 'npm'
- name: Install and Build
run: |
npm run bootstrap
npm run build-libs
npm run build:react
npm run typedoc
npm run build:vanilla
npm run build:styleguide
env:
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GH_TOKEN }}
branch: gh-pages
folder: docs