This repository was archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (57 loc) · 1.71 KB
/
publish_docs.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Deploy Docs
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
yarn-version: '1.22.x'
- name: Run yarn install in root directory
run: |
cd $GITHUB_WORKSPACE
yarn install
- name: Upload yarn.lock artifact
uses: actions/upload-artifact@v2
with:
name: yarn-lock
path: |
/home/runner/work/react-native-client-sdk/react-native-client-sdk/yarn.lock
- name: Run yarn install in example directory
run: |
cd $GITHUB_WORKSPACE/example
yarn install
- name: Upload yarn.lock artifact
uses: actions/upload-artifact@v2
with:
name: yarn-lock-example
path: |
/home/runner/work/react-native-client-sdk/react-native-client-sdk/example/yarn.lock
- name: Run yarn install in webdriverio-test directory
run: |
cd $GITHUB_WORKSPACE/example/webdriverio-test
yarn install
- name: Upload yarn.lock artifact
uses: actions/upload-artifact@v2
with:
name: yarn-lock-webdriverio-test
path: |
/home/runner/work/react-native-client-sdk/react-native-client-sdk/example/webdriverio-test/yarn.lock
- name: Build Docs
run: |
cd $GITHUB_WORKSPACE
yarn docs
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}