addding action.yml

This commit is contained in:
joeaba 2021-09-29 16:23:26 +05:30 committed by GitHub
parent 2221e5df74
commit 85d928f931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
.github/workflows/spl_action.yml vendored Normal file
View File

@ -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 }}