diff --git a/.github/workflows/spl_action.yml b/.github/workflows/spl_action.yml new file mode 100644 index 00000000..d98cf113 --- /dev/null +++ b/.github/workflows/spl_action.yml @@ -0,0 +1,29 @@ + +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 }} + +