Summary: Without this, our boilplate config gets deleted on every run: https://github.com/JamesIves/github-pages-deploy-action#additional-build-files- Pull Request resolved: https://github.com/facebook/flipper/pull/4335 Reviewed By: lblasa Differential Revision: D41548935 Pulled By: passy fbshipit-source-id: aea68dbb28ed07f0102be05695aa6f6225ef6e11
31 lines
640 B
YAML
31 lines
640 B
YAML
name: Docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install and Build
|
|
run: |
|
|
yarn
|
|
yarn build
|
|
working-directory: website/
|
|
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@4.1.3
|
|
with:
|
|
branch: gh-pages
|
|
folder: website/build
|
|
clean: true
|
|
clean-exclude: |
|
|
.circleci
|
|
commit-message: "[ci skip] Deploying documentation update"
|