From ca5c2e4d112c9826c0a48df87fce0b63e8de1075 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 20 Nov 2020 06:04:54 -0800 Subject: [PATCH] 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. https://github.com/passy/flipper-1/commit/6ac5b3fa70a58fa48f97955ccd4fb7298bd4b720 ![Screenshot 2020-11-20 at 11 09 34](https://user-images.githubusercontent.com/9906/99795354-8cbd5480-2b23-11eb-9fe9-10504b19e6a4.png) Reviewed By: nikoant Differential Revision: D25119924 Pulled By: passy fbshipit-source-id: b31ccd05daacc7c0a9a452e88638ba9a3bcc4c74 --- .github/workflows/docs.yml | 28 +++++++++++++++++++++++++ .travis.yml | 42 -------------------------------------- 2 files changed, 28 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/docs.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..421c276ef --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 83941e06e..000000000 --- a/.travis.yml +++ /dev/null @@ -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