Skip to content

Commit

Permalink
chore(ci): Update branches for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 11, 2024
1 parent 35615f6 commit 6e301bf
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/web_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6e301bf

Please sign in to comment.