Skip to content

Commit

Permalink
chore: Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongHeanKim committed Aug 4, 2023
1 parent 682877a commit 7a5deb5
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 3 deletions.
21 changes: 20 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,26 @@ pages:

build_for_release:
stage: release
<<: *build
tags:
- docker
image: node:20.3.0-slim
cache:
<<: *global_cache
before_script:
- apt-get update -y
- apt-get install git -y
- npm ci --cache .npm --prefer-offline
script:
- npm run build
- cp -rp dist/* public
# prepare remote repositories
- git config remote.origin.url >&- && git remote set-url origin https://$GITHUB_USERNAME:[email protected]/fixstars/amplify-benchmark-viewer.git || git remote add origin https://$GITHUB_USERNAME:[email protected]/fixstars/amplify-benchmark-viewer.git
- git config user.email "[email protected]"
- git config user.name "GitLab Bot"
- npm run deploy
artifacts:
paths:
- public
only:
refs:
- tags
Expand Down
213 changes: 213 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "amplify_benchmark_viewer",
"homepage": ".",
"homepage": "https://fixstars.github.io/amplify-benchmark-viewer",
"version": "0.0.0",
"private": true,
"dependencies": {
"@mui/x-data-grid": "^6.9.0",
"@tanstack/react-query": "^4.29.19",
Expand All @@ -27,6 +26,7 @@
"web-vitals": "^3.3.2"
},
"scripts": {
"deploy": "gh-pages -d public",
"start": "react-scripts start",
"build": "cross-env BUILD_PATH='./dist' react-scripts build",
"test": "react-scripts test",
Expand Down Expand Up @@ -100,6 +100,7 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-storybook": "^0.6.12",
"gh-pages": "^5.0.0",
"history": "^5.3.0",
"lefthook": "^1.4.3",
"postcss-styled-syntax": "^0.4.0",
Expand Down

0 comments on commit 7a5deb5

Please sign in to comment.