1# Publishes the latest main as a static site: every library, the bundle, the demos and a landing page.2name: pages3on:4 push:5 branches: [main]6 workflow_dispatch:7permissions:8 contents: read9 pages: write10 id-token: write11concurrency:12 group: pages13 cancel-in-progress: true14jobs:15 deploy:16 runs-on: ubuntu-latest17 environment:18 name: github-pages19 url: ${{ steps.deployment.outputs.page_url }}20 steps:21 - uses: actions/checkout@v422 - uses: denoland/setup-deno@v223 with:24 deno-version: v2.x25 - run: deno task size26 - run: deno task bundle27 - run: deno task site28 - uses: actions/upload-pages-artifact@v329 with:30 path: _site31 - id: deployment32 uses: actions/deploy-pages@v4