-
Notifications
You must be signed in to change notification settings - Fork 632
36 lines (35 loc) · 1018 Bytes
/
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
name: docs
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'documentation/**'
permissions:
contents: read
jobs:
deploy:
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18.4.0'
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
npm --prefix documentation ci
npm --prefix documentation run build
mv documentation/build docs
echo "kotest.io" > docs/CNAME
echo "kotest.io" > CNAME
git add docs -f
git commit -m "Updated docs"
git push origin master:gh-pages --force