Skip to content

Commit e84c245

Browse files
committed
[ci] update dependencies and skip stable
1 parent 8ee7c0e commit e84c245

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy repository to Github Pages
22

33
on:
44
push:
5-
branches: [ master, stable ]
5+
branches: [ master ]
66

77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
@@ -17,38 +17,30 @@ jobs:
1717
build:
1818
runs-on: ubuntu-24.04
1919
steps:
20-
- name: Checkout master
21-
uses: actions/checkout@v4
20+
- name: Checkout develop
21+
uses: actions/checkout@v6
2222
with:
23-
path: master
23+
path: develop
2424
ref: master
2525
fetch-depth: 0
26-
- name: Build Stable
26+
- name: Build develop
2727
run: |
28-
cd master
29-
./build_site.sh ../_site/stable
30-
- name: Checkout Stable
31-
uses: actions/checkout@v4
32-
with:
33-
path: dev
34-
# replace with develop tag/branch when necessary
35-
ref: master
36-
fetch-depth: 0
37-
- name: Build Develop
28+
cd develop
29+
./build_site.sh ../_site/develop
30+
- name: copy develop to stable
3831
run: |
39-
cd dev
40-
../master/build_site.sh ../_site/develop
41-
- uses: actions/setup-node@v4
32+
cp -r _site/develop _site/stable
33+
- uses: actions/setup-node@v6
4234
with:
4335
node-version: latest
4436
- name: Generate html index page
4537
run: |
46-
cd master/site_generator
38+
cd develop/site_generator
4739
npm i -g ts-node
4840
npm ci
4941
npm run ci-build
5042
cp -r site/* ../../_site/
51-
- uses: actions/upload-pages-artifact@v3
43+
- uses: actions/upload-pages-artifact@v4
5244
with:
5345
path: '_site'
5446

0 commit comments

Comments
 (0)