File tree Expand file tree Collapse file tree 1 file changed +12
-20
lines changed
Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Deploy repository to Github Pages
22
33on :
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
You can’t perform that action at this time.
0 commit comments