Skip to content

Multi-Module Pull Request CI Workflows #2488

Multi-Module Pull Request CI Workflows

Multi-Module Pull Request CI Workflows #2488

Workflow file for this run

name: Docs Publish
on:
push:
branches: [master]
paths:
- 'docs/**'
- '.github/workflows/spl_action.yml'
pull_request:
branches: [master]
paths:
- 'docs/**'
- '.github/workflows/spl_action.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Importing all the documents
uses: actions/checkout@v4
- name: Installing Node.js with version 18
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Build Docs
if: (github.event_name == 'push' || github.event_name == 'pull_request') && github.ref == 'refs/heads/master'
run: |
cd docs/
npm ci
./build.sh
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }}