Migrate from Travis CI to GitHub Actions (#1695)
Summary:
We've previously had the docs deployment in Travis. Also some builds
but they were redundant, so that doesn't really matter.
Pull Request resolved: https://github.com/facebook/flipper/pull/1695
Test Plan:
Tested it on my own branch.
6ac5b3fa70

Reviewed By: nikoant
Differential Revision: D25119924
Pulled By: passy
fbshipit-source-id: b31ccd05daacc7c0a9a452e88638ba9a3bcc4c74
This commit is contained in:
committed by
Facebook GitHub Bot
parent
51de9b72cf
commit
ca5c2e4d11
28
.github/workflows/docs.yml
vendored
Normal file
28
.github/workflows/docs.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Docs
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
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@3.7.1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
FOLDER: website/build
|
||||
CLEAN: true
|
||||
Reference in New Issue
Block a user