-
-
Notifications
You must be signed in to change notification settings - Fork 249
30 lines (27 loc) · 751 Bytes
/
docs-deploy.yml
File metadata and controls
30 lines (27 loc) · 751 Bytes
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
name: Docs publish
on:
push:
branches:
- main
paths:
- docs/**
jobs:
publish:
if: github.repository == 'AppAndFlow/react-native-safe-area-context'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Generate awesome content
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 }}