Repository navigation
0.1 initial #4
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 Documentation | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: | | |
| package-lock.json | |
| docs-site/package-lock.json | |
| playground-web/package-lock.json | |
| - name: Install root dependencies | |
| run: npm ci | |
| - name: Build TPL packages | |
| run: npm run build | |
| - name: Install docs dependencies | |
| working-directory: ./docs-site | |
| run: npm ci | |
| - name: Build documentation | |
| working-directory: ./docs-site | |
| run: npm run docs:build | |
| env: | |
| NODE_ENV: production | |
| - name: Install playground dependencies | |
| working-directory: ./playground-web | |
| run: npm ci | |
| - name: Build playground | |
| working-directory: ./playground-web | |
| run: npm run build | |
| - name: Combine builds | |
| run: | | |
| mkdir -p ./dist-combined | |
| cp -r ./docs-site/.vitepress/dist/* ./dist-combined/ | |
| mkdir -p ./dist-combined/playground | |
| cp -r ./playground-web/dist/* ./dist-combined/playground/ | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "./dist-combined" | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |