Skip to content

Commit 6e301bf

Browse files
committed
chore(ci): Update branches for gh-pages
1 parent 35615f6 commit 6e301bf

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/web_build.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Web validator
33

44
on:
55
push:
6-
branches: [main, stable]
6+
branches: [main, dev]
77
pull_request:
8-
branches: [main, stable]
8+
branches: [main, dev]
99
release:
1010
types: [published]
1111
workflow_dispatch:
@@ -42,24 +42,25 @@ jobs:
4242
- name: Checkout release/target
4343
uses: actions/checkout@v4
4444
with:
45-
# Use the implicit ref, assuming it's stable
45+
# Stable is whatever we're releasing. Should generally
46+
# be the last release, but can be main.
4647
path: stable
47-
- name: Checkout main
48+
- name: Checkout dev
4849
uses: actions/checkout@v4
4950
with:
50-
ref: main
51-
path: main
51+
ref: dev
52+
path: dev
5253
- uses: denoland/setup-deno@v2
5354
with:
5455
deno-version: v2.x
5556
- name: Build release/target
5657
run: deno task build
5758
working-directory: stable/web
58-
- name: Build main
59+
- name: Build dev
5960
run: deno task build
60-
working-directory: main/web
61-
- name: Nest main inside stable
62-
run: mv main/web/dist stable/web/dist/dev
61+
working-directory: dev/web
62+
- name: Nest dev inside stable
63+
run: mv dev/web/dist stable/web/dist/dev
6364
- name: Upload GitHub Pages artifact
6465
uses: actions/upload-pages-artifact@v3
6566
with:

0 commit comments

Comments
 (0)