Merge pull request #6 from devitools/feat/field-types-fillers-sub-schema #29
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 Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - run: pnpm install | |
| - run: pnpm -r --filter './packages/*' build | |
| - run: VITE_BASE_URL=/ybyra/demo/react-web/ pnpm --filter @ybyra/playground-react-web build | |
| - run: VITE_BASE_URL=/ybyra/demo/vue-quasar/ pnpm --filter @ybyra/playground-vue-quasar build | |
| - run: SVELTE_BASE_URL=/ybyra/demo/sveltekit pnpm --filter @ybyra/playground-sveltekit build | |
| - run: EXPO_BASE_URL=/ybyra/demo/react-native pnpm --filter @ybyra/playground-react-native build:web | |
| - run: pnpm docs:build | |
| - run: | | |
| mkdir -p docs/.vitepress/dist/demo | |
| cp -r playground/react-web/dist docs/.vitepress/dist/demo/react-web | |
| cp -r playground/vue-quasar/dist docs/.vitepress/dist/demo/vue-quasar | |
| cp -r playground/sveltekit/build docs/.vitepress/dist/demo/sveltekit | |
| cp -r playground/react-native/dist docs/.vitepress/dist/demo/react-native | |
| cp docs/spa-redirect.html docs/.vitepress/dist/404.html | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/.vitepress/dist | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |