-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1 KB
/
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
name: Publish Docs
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.branch }}
uses: actions/checkout@v2
- name: Grab Node version from NVMRC version
run: echo "NVMRC=$(cat .nvmrc)" >> "${GITHUB_ENV}"
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: ${{ env.NVMRC }}
- name: Install packages
run: npm ci
- name: Build docs
run: npm run build-docs
- name: Deploy to GitHub Pages
if: success()
uses: leigholiver/[email protected]
with:
source: docs
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
destination_branch: main
destination_folder: .
destination_repo: TRACE-Digital/TRACE-search-docs
delete_destination: true
git_username: trace-digi-bot
git_email: [email protected]