-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (34 loc) · 943 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
# https://github.com/kotest/kotest/tree/master/.github/workflows
name: docs
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'documentation/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node 20
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config user.name github-actions
git config user.email [email protected]
npm --prefix documentation ci
npm --prefix documentation run build
mv documentation/build docs
echo "kashmora.com" > docs/CNAME
echo "kashmora.com" > CNAME
git add docs -f
git commit -m "Updated docs"
git push origin main:gh-pages --force