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
|
||||
42
.travis.yml
42
.travis.yml
@@ -1,42 +0,0 @@
|
||||
os: osx
|
||||
osx_image: xcode10.2
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- language: node_js
|
||||
os: linux
|
||||
node_js:
|
||||
- "12"
|
||||
|
||||
install:
|
||||
- cd website
|
||||
- yarn
|
||||
- cd ..
|
||||
|
||||
script:
|
||||
- cd website
|
||||
- yarn build
|
||||
- cd ..
|
||||
|
||||
deploy:
|
||||
- provider: pages
|
||||
skip-cleanup: true
|
||||
github-token: $GITHUB_TOKEN
|
||||
fqdn: fbflipper.com
|
||||
local-dir: website/build
|
||||
keep-history: true
|
||||
on:
|
||||
branch: master
|
||||
- language: node_js
|
||||
os: linux
|
||||
node_js:
|
||||
- "12"
|
||||
|
||||
install:
|
||||
- cd desktop
|
||||
- yarn
|
||||
|
||||
script:
|
||||
- yarn lint
|
||||
- yarn test
|
||||
- yarn build --linux --version=$TRAVIS_BUILD_NUMBER
|
||||
Reference in New Issue
Block a user