Skip to content

Commit 0bcef3d

Browse files
committed
Merge branch 'dev'
2 parents 954b96c + c5ade5c commit 0bcef3d

File tree

3 files changed

+70
-59
lines changed

3 files changed

+70
-59
lines changed

.github/workflows/publish-dev.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This GitHub Action publishes the dev branch to
2+
# u-a-t-p.github.io/demoland-web/dev.
3+
4+
name: publish-website-dev
5+
on:
6+
push:
7+
branches:
8+
- dev
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Set up Node.JS
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 21
19+
20+
- name: Checkout dev branch
21+
uses: actions/checkout@v3
22+
with:
23+
ref: dev
24+
25+
- name: Build dev branch
26+
run: |
27+
npm ci
28+
npm run build_all github_dev
29+
30+
- name: Publish build files to gh-pages branch
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: /tmp/demoland-web/dev
35+
destination_dir: dev

.github/workflows/publish-main.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This GitHub Action publishes the main branch to
2+
# u-a-t-p.github.io/demoland-web.
3+
4+
name: publish-website
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Set up Node.JS
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 21
19+
20+
- name: Checkout main branch
21+
uses: actions/checkout@v3
22+
with:
23+
ref: main
24+
25+
- name: Build main branch
26+
run: |
27+
npm ci
28+
npm run build_all github
29+
30+
- name: Publish all built versions to gh-pages branch
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: /tmp/demoland-web
35+
keep_files: true

.github/workflows/publish.yml

-59
This file was deleted.

0 commit comments

Comments
 (0)