diff --git a/.github/workflows/web_build.yml b/.github/workflows/web_build.yml index d561cbcb..4297bdcb 100644 --- a/.github/workflows/web_build.yml +++ b/.github/workflows/web_build.yml @@ -3,9 +3,9 @@ name: Web validator on: push: - branches: [main, stable] + branches: [main, dev] pull_request: - branches: [main, stable] + branches: [main, dev] release: types: [published] workflow_dispatch: @@ -42,24 +42,25 @@ jobs: - name: Checkout release/target uses: actions/checkout@v4 with: - # Use the implicit ref, assuming it's stable + # Stable is whatever we're releasing. Should generally + # be the last release, but can be main. path: stable - - name: Checkout main + - name: Checkout dev uses: actions/checkout@v4 with: - ref: main - path: main + ref: dev + path: dev - uses: denoland/setup-deno@v2 with: deno-version: v2.x - name: Build release/target run: deno task build working-directory: stable/web - - name: Build main + - name: Build dev run: deno task build - working-directory: main/web - - name: Nest main inside stable - run: mv main/web/dist stable/web/dist/dev + working-directory: dev/web + - name: Nest dev inside stable + run: mv dev/web/dist stable/web/dist/dev - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3 with: