forked from react-native-elements/react-native-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.14 KB
/
docs.yml
File metadata and controls
45 lines (37 loc) · 1.14 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
42
43
44
name: docs
on:
push:
branches:
- master
paths:
- 'website/**'
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false # avoid using GITHUB_TOKEN for push
fetch-depth: 0 # fetch all history to allow pushing refs to dest repo
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Enable Yarn with Corepack
run: corepack prepare yarn@3.2.4 --activate # Website uses Yarn 3.2.4 for Docusaurus compatibility
shell: bash
- name: Install dependencies
uses: ./.github/actions/install
with:
install_website: true
- name: Build 🔧
run: yarn docs-build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
user_name: "React Native Elements CI"
user_email: "react-native-elements-ci@users.noreply.github.com"
cname: reactnativeelements.com