diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 00000000000..f4583f5cf52 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,30 @@ + + + +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: "importing all the document" + - uses: actions/setup-node@v2 + with: + node-version: '16' + name: "installing the node.js with version 16" + - run: .travis/affects.sh docs/ .travis || exit 0 + if: ${{ github.event_name == ('push' || 'pull_request')}} && ${{github.ref == 'master'}} + name: "Build Docs" + - run: | + cd docs/ + source .travis/before_install.sh + npm ci + source .travis/script.sh + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + + diff --git a/.travis.yml b/.travis.yml index 162cc8bb219..e7adb91c86d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,25 @@ -dist: bionic -sudo: required +# dist: bionic +# sudo: required -branches: - only: - - master +# branches: +# only: +# - master -notifications: - email: false +# notifications: +# email: false -jobs: - include: - # docs pull request or commit to master - - name: "Build Docs" - if: type IN (push, pull_request) AND branch = master - language: node_js - node_js: - - "node" +# jobs: +# include: +# # docs pull request or commit to master +# - name: "Build Docs" +# if: type IN (push, pull_request) AND branch = master +# language: node_js +# node_js: +# - "node" - before_install: - - .travis/affects.sh docs/ .travis || travis_terminate 0 - - cd docs/ - - source .travis/before_install.sh - script: - - source .travis/script.sh +# before_install: +# - .travis/affects.sh docs/ .travis || travis_terminate 0 +# - cd docs/ +# - source .travis/before_install.sh +# script: +# - source .travis/script.sh diff --git a/ci/env.sh b/ci/env.sh index d075b259997..dc871a24abb 100644 --- a/ci/env.sh +++ b/ci/env.sh @@ -6,6 +6,7 @@ if [[ -n $CI ]]; then export CI=1 + export CI_BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') if [[ -n $TRAVIS ]]; then export CI_BRANCH=$TRAVIS_BRANCH export CI_BASE_BRANCH=$TRAVIS_BRANCH