github.com/lmittmann/w3@v0.20.0/.github/workflows/doc.yml (about) 1 name: Doc 2 3 on: 4 push: 5 branches: [main] 6 tags: ["v*"] 7 pull_request: 8 9 jobs: 10 build: 11 name: Build 12 runs-on: ubuntu-latest 13 steps: 14 - uses: actions/checkout@v4 15 - uses: oven-sh/setup-bun@v2 16 with: 17 bun-version: latest 18 - run: bun install 19 working-directory: ./docs 20 - run: bun run build 21 working-directory: ./docs 22 - name: upload Pages artifact 23 if: github.ref_type == 'tag' 24 uses: actions/upload-pages-artifact@v3 25 with: 26 path: ./docs/out 27 28 deploy: 29 name: Deploy 30 needs: build 31 if: github.ref_type == 'tag' 32 runs-on: ubuntu-latest 33 34 permissions: 35 pages: write 36 id-token: write 37 38 environment: 39 name: github-pages 40 url: ${{ steps.deployment.outputs.page_url }} 41 42 steps: 43 - name: deploy to GitHub pages 44 id: deployment 45 uses: actions/deploy-pages@v4