-
-
Notifications
You must be signed in to change notification settings - Fork 632
35 lines (32 loc) · 911 Bytes
/
docs-check.yml
File metadata and controls
35 lines (32 loc) · 911 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
31
32
33
34
35
name: Publish Screens landing page
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
push:
branches:
- main
paths: docs/**
workflow_dispatch:
jobs:
publish:
if: github.repository == 'software-mansion/react-native-screens'
runs-on: ubuntu-latest
concurrency:
group: docs-check-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out
uses: actions/checkout@v4
- name: Generate landing page 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 }}