ci: moved sdk-js doc into it's own sub page #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy SDK documentation | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/sdk-doc.yml' | |
- 'src/sdk/**' | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
permissions: | |
contents: write | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Node ⚙️ | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install dependencies ⚙️ | |
run: npm ci --prefix src/sdk | |
- name: Build documentation 🔧 | |
run: npm run build:docs --prefix src/sdk | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: src/sdk/docs | |
target-folder: sdk-js |