-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
29 lines (25 loc) · 779 Bytes
/
main.yml
File metadata and controls
29 lines (25 loc) · 779 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
name: Publish to GitHub Pages
on:
push:
branches:
- main
jobs:
publish:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v1
- name: Generate docs
run: >-
git config --local user.email "action@github.com"
&& git config --local user.name "GitHub Action"
&& cd packages/docs-gesture-handler
&& yarn
&& yarn build
- name: Publish generated content to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: packages/docs-gesture-handler/build
BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}