Skip to content

Commit c102b8d

Browse files
Merge pull request #7 from mapping-commons/6-update-deploy-workflow
6 update deploy workflow
2 parents cd54025 + 356399b commit c102b8d

File tree

4 files changed

+725
-738
lines changed

4 files changed

+725
-738
lines changed

.github/workflows/deploy.yml

+10-16
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,21 @@ jobs:
2222
cache: 'npm'
2323
cache-dependency-path: './table-component/package-lock.json'
2424

25-
- name: Install and Build
25+
- name: Install dependencies and build
26+
working-directory: ./table-component
2627
run: |
27-
npm install
28-
cd ./table-component
28+
npm ci
2929
npm run build
30-
env:
31-
NODE_ENV: production
3230
33-
- name: Copy build files
31+
- name: Prepare for deployment
3432
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
40-
41-
- name: Prepare documentation
42-
run: |
43-
mkdir gh-pages
33+
mkdir -p gh-pages/css gh-pages/js
34+
cp index.html gh-pages/
35+
cp table-component/dist/css/app*.css gh-pages/css/app.css
36+
cp table-component/dist/css/chunk-vendors*.css gh-pages/css/chunk-vendors.css
37+
cp table-component/dist/js/app*.js gh-pages/js/app.js
38+
cp table-component/dist/js/chunk-vendors*.js gh-pages/js/chunk-vendors.js
4439
touch gh-pages/.nojekyll
45-
mv site/* ./gh-pages/
4640
4741
- name: Deploy documentation.
4842
if: ${{ github.event_name == 'push' }}

index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
88
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
99
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
10-
<link href="/css/app.5921e8d2.css" rel="preload" as="style">
11-
<link href="/css/chunk-vendors.ff603852.css" rel="preload" as="style">
12-
<link href="/js/app.5da4fec8.js" rel="preload" as="script">
13-
<link href="/js/chunk-vendors.69b84130.js" rel="preload" as="script">
14-
<link href="/css/chunk-vendors.ff603852.css" rel="stylesheet">
15-
<link href="/css/app.5921e8d2.css" rel="stylesheet">
10+
<link href="/css/app.css" rel="preload" as="style">
11+
<link href="/css/chunk-vendors.css" rel="preload" as="style">
12+
<link href="/js/app.js" rel="preload" as="script">
13+
<link href="/js/chunk-vendors.js" rel="preload" as="script">
14+
<link href="/css/chunk-vendors.css" rel="stylesheet">
15+
<link href="/css/app.css" rel="stylesheet">
1616
<div class="jumbotron">
1717
<h1>Mapping Commons</h1>
1818

@@ -44,7 +44,7 @@ <h2>
4444
</div>
4545

4646
<div id="app"></div>
47-
<script src="/js/chunk-vendors.69b84130.js"></script>
48-
<script src="/js/app.5da4fec8.js"></script>
47+
<script src="/js/chunk-vendors.js"></script>
48+
<script src="/js/app.js"></script>
4949
</body>
5050
</html>

table-component/dist/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>table</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link href="/css/app.5921e8d2.css" rel="preload" as="style"><link href="/css/chunk-vendors.ff603852.css" rel="preload" as="style"><link href="/js/app.5da4fec8.js" rel="preload" as="script"><link href="/js/chunk-vendors.69b84130.js" rel="preload" as="script"><link href="/css/chunk-vendors.ff603852.css" rel="stylesheet"><link href="/css/app.5921e8d2.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.69b84130.js"></script><script src="/js/app.5da4fec8.js"></script></body></html>
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>table</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link href="css/app.5921e8d2.css" rel="preload" as="style"><link href="css/chunk-vendors.ff603852.css" rel="preload" as="style"><link href="js/app.bb9eaf86.js" rel="preload" as="script"><link href="js/chunk-vendors.80da4752.js" rel="preload" as="script"><link href="css/chunk-vendors.ff603852.css" rel="stylesheet"><link href="css/app.5921e8d2.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.80da4752.js"></script><script src="js/app.bb9eaf86.js"></script></body></html>

0 commit comments

Comments
 (0)