From 47c93ae63ad3df67326cc715bbb7ab0352079e8c Mon Sep 17 00:00:00 2001 From: Kush Date: Wed, 22 Jul 2026 12:31:58 -0400 Subject: [PATCH] ci(playground): publish playground.html as a rolling release asset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Pages is a dead end for this org — the org-wide Pages custom domain (dev.bandwidth.com) resolves to the S3/CloudFront dev-docs site, so no Pages deploy in the org actually serves. Instead, attach the built playground.html to a rolling 'playground-latest' release, refreshed on every push to main. Gives sellers one stable download link, no local build required. --- .github/workflows/playground.yml | 42 ++++++++++++-------------------- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml index 90954cd..325e740 100644 --- a/.github/workflows/playground.yml +++ b/.github/workflows/playground.yml @@ -6,13 +6,15 @@ on: workflow_dispatch: concurrency: - group: pages + group: playground-release cancel-in-progress: false jobs: - build: - name: Build + release: + name: Publish runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v6 @@ -29,27 +31,15 @@ jobs: - name: Build playground run: npm run playground:build - - name: Stage site + - name: Publish playground.html to rolling release + env: + GH_TOKEN: ${{ github.token }} run: | - mkdir -p _site - cp dist/playground.html _site/index.html - - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 - with: - path: _site - - deploy: - name: Deploy - needs: build - runs-on: ubuntu-latest - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + if gh release view playground-latest >/dev/null 2>&1; then + gh release upload playground-latest dist/playground.html --clobber + else + gh release create playground-latest dist/playground.html \ + --title "Migration Preflight Playground (latest)" \ + --notes "Auto-published from main on every push. Download playground.html and double-click — no install, no server, works offline." \ + --latest=false + fi