feat(data): pruneToPluginSchema + fromData sheds empty structural res… #99
This file contains hidden or 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: Deploy API Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build | |
| working-directory: packages/data | |
| - run: cp -r packages/data/dist packages/data/docs/dist | |
| - run: pnpm --filter @adobe/data-sync build | |
| - run: pnpm --filter @adobe/data-lit build | |
| - run: pnpm --filter @adobe/data-gpu build | |
| - run: pnpm --filter data-p2p-tictactoe build | |
| env: | |
| CI: true | |
| - run: cp -r packages/data-p2p-tictactoe/dist packages/data/docs/p2p-tictactoe | |
| - run: pnpm --filter data-gpu-samples build | |
| env: | |
| CI: true | |
| - run: cp -r packages/data-gpu-samples/dist packages/data/docs/gpu-samples | |
| - uses: actions/configure-pages@v5 | |
| with: | |
| enablement: true | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: packages/data/docs | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |