Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docs build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
push:
branches:
- main
paths:
- '.github/workflows/docs-check.yml'
- docs/**
pull_request:
paths:
- '.github/workflows/docs-check.yml'
- docs/**
jobs:
build:
if: github.repository == 'AppAndFlow/react-native-ease'
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: docs
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install docs deps
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install
- name: Build docs
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn build
30 changes: 30 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Docs publish
on:
push:
branches:
- main
paths:
- docs/**

jobs:
publish:
if: github.repository == 'AppAndFlow/react-native-ease'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4

- name: Build docs
run: >-
git config --local user.email "action@github.com"
&& git config --local user.name "GitHub Action"
&& cd docs
&& yarn
&& yarn build

- name: Publish generated content to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: docs/build
BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading