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