File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 6
6
on :
7
7
# Triggers the workflow on push or pull request events but only for the "master" branch
8
8
push :
9
- branches : [ "master" ]
9
+ branches : ["master"]
10
10
11
- # Allows you to run this workflow manually from the Actions tab
11
+ # Allows you to run this workflow manually from the Actions tab
12
12
workflow_dispatch :
13
13
14
14
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -27,19 +27,24 @@ jobs:
27
27
fetch-tags : true
28
28
29
29
# Runs a single command using the runners shell
30
- - name : Run a one-line script
30
+ - name : Build and pack gh-pages
31
31
run : |
32
32
npm ci
33
33
npx npm-run-all buildcss:* build:*
34
- mkdir ./dist/gh-pages
35
- mv ./dist/chatstatcreator.html ./dist/gh-pages/index.html
34
+ mkdir -p ./dist/gh-pages/dist/chatstat
35
+ mkdir -p ./dist/gh-pages/dist/chatstatworker
36
+ mkdir -p ./dist/gh-pages/src/packer
37
+ mv ./index.html ./dist/gh-pages/
38
+ mv ./dist/chatstatcreator/chatstatcreator.iife.js ./dist/gh-pages/src/packer/main.js
39
+ mv ./dist/chatstat/chatstat.iife.js ./dist/gh-pages/dist/chatstat/
40
+ mv ./dist/chatstatworker/chatstat.worker.iife.js ./dist/gh-pages/dist/chatstatworker/
36
41
37
42
- name : Upload GitHub Pages artifact
38
43
39
44
with :
40
45
# Artifact name
41
46
path : ./dist/gh-pages/ # default is _site/
42
-
47
+
43
48
# Deployment job
44
49
deploy :
45
50
environment :
Original file line number Diff line number Diff line change 7
7
</ head >
8
8
< body >
9
9
< main id ="app "> </ main >
10
- < script type ="module " src ="/ src/packer/main.js "> </ script >
10
+ < script type ="module " src ="src/packer/main.js "> </ script >
11
11
</ body >
12
12
</ html >
You can’t perform that action at this time.
0 commit comments