forked from software-mansion/react-native-reanimated
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 754 Bytes
/
main.yml
File metadata and controls
30 lines (26 loc) · 754 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: Publish to GitHub Pages
on:
push:
branches:
- main
paths: docs/**
jobs:
publish:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- 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 }}