diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 00000000000..537d98465c2 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,28 @@ + +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 diff --git a/coverage.sh b/coverage.sh index e21e0fc92fb..e42246ebabd 100755 --- a/coverage.sh +++ b/coverage.sh @@ -92,3 +92,4 @@ ls -l target/cov/$reportName/index.html ln -sfT $reportName target/cov/LATEST exit $test_status + diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 2a19ba0d0b9..34804ac3840 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=solana-program-library PRODUCTION= if [[ -n "$CI" ]]; then @@ -17,7 +17,7 @@ fi cat > "$CONFIG_FILE" <