diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 00000000000..462a810d281 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,29 @@ + + +on: + push: + branches: [master] + pull_request_target: + 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 deleted file mode 100644 index 162cc8bb219..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -dist: bionic -sudo: required - -branches: - only: - - master - -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" - - 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/.travis.yml.txt b/.travis.yml.txt new file mode 100644 index 00000000000..e7adb91c86d --- /dev/null +++ b/.travis.yml.txt @@ -0,0 +1,25 @@ +# dist: bionic +# sudo: required + +# branches: +# only: +# - master + +# 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" + +# 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 diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 2a19ba0d0b9..3f54afa4895 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -7,7 +7,7 @@ if [[ -d .vercel ]]; then fi CONFIG_FILE=vercel.json -PROJECT_NAME=spl-solana-com +PROJECT_NAME=spl PRODUCTION= if [[ -n "$CI" ]]; then @@ -17,7 +17,7 @@ fi cat > "$CONFIG_FILE" <