File tree 3 files changed +70
-59
lines changed
3 files changed +70
-59
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments