Skip to content

Commit 9142c35

Browse files
add workflow to publish docs
1 parent 6c2c289 commit 9142c35

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish_docs.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
if: github.repository == 'software-mansion/react-native-executorch'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out
14+
uses: actions/checkout@v1
15+
16+
- name: Generate docs
17+
run: >-
18+
git config --local user.email "[email protected]"
19+
&& git config --local user.name "GitHub Action"
20+
&& cd docs
21+
&& yarn
22+
&& yarn build
23+
24+
- name: Publish generated content to GitHub Pages
25+
uses: JamesIves/github-pages-deploy-action@releases/v3
26+
with:
27+
FOLDER: docs/build
28+
BRANCH: gh-pages
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)