Skip to content

docs: add website (#582) #5

docs: add website (#582)

docs: add website (#582) #5

Workflow file for this run

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 }}