Skip to content

Commit

Permalink
Merge pull request #7 from mapping-commons/6-update-deploy-workflow
Browse files Browse the repository at this point in the history
6 update deploy workflow
  • Loading branch information
souzadevinicius authored Nov 21, 2024
2 parents cd54025 + 356399b commit c102b8d
Show file tree
Hide file tree
Showing 4 changed files with 725 additions and 738 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,21 @@ jobs:
cache: 'npm'
cache-dependency-path: './table-component/package-lock.json'

- name: Install and Build
- name: Install dependencies and build
working-directory: ./table-component
run: |
npm install
cd ./table-component
npm ci
npm run build
env:
NODE_ENV: production
- name: Copy build files
- name: Prepare for deployment
run: |
mkdir -p ../css ../js
cp ./table-component/dist/css/app*.css ../css/app.css
cp ./table-component/dist/css/chunk-vendors*.css ../css/chunk-vendors.css
cp ./table-component/dist/js/app*.js ../js/app.js
cp ./table-component/dist/js/chunk-vendors*.js ../js/chunk-vendors.js
- name: Prepare documentation
run: |
mkdir gh-pages
mkdir -p gh-pages/css gh-pages/js
cp index.html gh-pages/
cp table-component/dist/css/app*.css gh-pages/css/app.css
cp table-component/dist/css/chunk-vendors*.css gh-pages/css/chunk-vendors.css
cp table-component/dist/js/app*.js gh-pages/js/app.js
cp table-component/dist/js/chunk-vendors*.js gh-pages/js/chunk-vendors.js
touch gh-pages/.nojekyll
mv site/* ./gh-pages/
- name: Deploy documentation.
if: ${{ github.event_name == 'push' }}
Expand Down
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<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">
<link href="/css/app.css" rel="preload" as="style">
<link href="/css/chunk-vendors.css" rel="preload" as="style">
<link href="/js/app.js" rel="preload" as="script">
<link href="/js/chunk-vendors.js" rel="preload" as="script">
<link href="/css/chunk-vendors.css" rel="stylesheet">
<link href="/css/app.css" rel="stylesheet">
<div class="jumbotron">
<h1>Mapping Commons</h1>

Expand Down Expand Up @@ -44,7 +44,7 @@ <h2>
</div>

<div id="app"></div>
<script src="/js/chunk-vendors.69b84130.js"></script>
<script src="/js/app.5da4fec8.js"></script>
<script src="/js/chunk-vendors.js"></script>
<script src="/js/app.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion table-component/dist/index.html
Original file line number Diff line number Diff line change
@@ -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>
<!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>
Loading

0 comments on commit c102b8d

Please sign in to comment.