diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 00000000000..7a06d2c0961 --- /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/ + touch .env + echo VERCEL_TOKEN =${{ secrets.VERCEL_TOKEN }} > .env + 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/Anchor.toml b/Anchor.toml index 9f316c2328b..47d7bf994ef 100644 --- a/Anchor.toml +++ b/Anchor.toml @@ -10,3 +10,4 @@ wallet = "~/.config/solana/id.json" [programs.mainnet] spl_governance = "GoVEr6xcF9QGrRFJC4kt9wiCdNqZzrG7KWdrm7viDnpa" + diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 2a19ba0d0b9..a0a03c1bfc9 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -20,7 +20,6 @@ cat > "$CONFIG_FILE" <