Skip to content

Commit

Permalink
add workflow to publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NorbertKlockiewicz committed Nov 5, 2024
1 parent 6c2c289 commit 9142c35
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to GitHub Pages

on:
push:
branches:
- main

jobs:
publish:
if: github.repository == 'software-mansion/react-native-executorch'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v1

- name: Generate docs
run: >-
git config --local user.email "[email protected]"
&& 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 }}

0 comments on commit 9142c35

Please sign in to comment.