also looking at this
chore(deps): update all non-major dependencies
#418
11 files
+442
-40
| @@ -0,0 +1,60 @@ | ||
| 1 | name: Deploy Docs | |
| 2 | ||
| 3 | on: | |
| 4 | push: | |
| 5 | branches: [main] | |
| 6 | paths: | |
| 7 | - 'docs/**' | |
| 8 | - '.github/workflows/docs.yml' | |
| 9 | workflow_dispatch: | |
| 10 | ||
| 11 | permissions: | |
| 12 | contents: read | |
| 13 | pages: write | |
| 14 | id-token: write | |
| 15 | ||
| 16 | concurrency: | |
| 17 | group: pages | |
| 18 | cancel-in-progress: false | |
| 19 | ||
| 20 | jobs: | |
| 21 | build: | |
| 22 | runs-on: ubuntu-latest | |
| 23 | steps: | |
| 24 | - name: Checkout | |
| 25 | uses: actions/checkout@v4 | |
| 26 | with: | |
| 27 | fetch-depth: 0 | |
| 28 | ||
| 29 | - name: Setup Bun | |
| 30 | uses: oven-sh/setup-bun@v2 | |
| 31 | ||
| 32 | - name: Use Cached node_modules | |
| 33 | uses: actions/cache@v4 | |
| 34 | with: | |
| 35 | path: node_modules | |
| 36 | key: node-modules-${{ hashFiles('**/bun.lock') }} | |
| 37 | restore-keys: | | |
| 38 | node-modules- | |
| 39 | ||
| 40 | - name: Install Dependencies | |
| 41 | run: bun install | |
| 42 | ||
| 43 | - name: Build Documentation | |
| 44 | run: bun run build:docs | |
| 45 | ||
| 46 | - name: Upload Pages Artifact | |
| 47 | uses: actions/upload-pages-artifact@v3 | |
| 48 | with: | |
| 49 | path: docs/.vitepress/dist | |
| 50 | ||
| 51 | deploy: | |
| 52 | environment: | |
| 53 | name: github-pages | |
| 54 | url: ${{ steps.deployment.outputs.page_url }} | |
| 55 | needs: build | |
| 56 | runs-on: ubuntu-latest | |
| 57 | steps: | |
| 58 | - name: Deploy to GitHub Pages | |
| 59 | id: deployment | |
| 60 | uses: actions/deploy-pages@v4.0.5 | |