File tree 1 file changed +14
-16
lines changed
1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -22,27 +22,25 @@ jobs:
22
22
cache : ' npm'
23
23
cache-dependency-path : ' ./table-component/package-lock.json'
24
24
25
- - name : Install and Build
26
- run : |
27
- npm install
28
- npm run build
25
+ # - name: Install Vue CLI globally
26
+ # run: npm install -g @vue/cli-plugin-babel/preset
27
+ # working-directory: ./table-component
28
+
29
+ - name : Install dependencies and build
29
30
working-directory : ./table-component
30
- env :
31
- NODE_ENV : production
32
-
33
- - name : Copy build files
34
31
run : |
35
- mkdir -p ../css ../js
36
- cp ./table-component/dist/css/app*.css ../css/app.css
37
- cp ./table-component/dist/css/chunk-vendors*.css ../css/chunk-vendors.css
38
- cp ./table-component/dist/js/app*.js ../js/app.js
39
- cp ./table-component/dist/js/chunk-vendors*.js ../js/chunk-vendors.js
32
+ npm ci
33
+ npm run build
40
34
41
- - name : Prepare documentation
35
+ - name : Prepare for deployment
42
36
run : |
43
- mkdir gh-pages
37
+ mkdir -p gh-pages/css gh-pages/js
38
+ cp index.html gh-pages/
39
+ cp table-component/dist/css/app*.css gh-pages/css/app.css
40
+ cp table-component/dist/css/chunk-vendors*.css gh-pages/css/chunk-vendors.css
41
+ cp table-component/dist/js/app*.js gh-pages/js/app.js
42
+ cp table-component/dist/js/chunk-vendors*.js gh-pages/js/chunk-vendors.js
44
43
touch gh-pages/.nojekyll
45
- mv site/* ./gh-pages/
46
44
47
45
- name : Deploy documentation.
48
46
if : ${{ github.event_name == 'push' }}
You can’t perform that action at this time.
0 commit comments