Commit 32fa11a9 authored by 神楽坂玲奈's avatar 神楽坂玲奈

deploy

parent 387474a0
language: node_js language: node_js
node_js: node node_js: node
env:
secure:
QwnXsCYkcEftTWJShEVjVWuSkGu87sv/3yHx+JRPkdoqUHDlmWrS3Rl0LMBoJi9dJ/G7mIslKs89bzP0c8iPRiccwbc0tz/6AWwPYGYj7cHZcbH7wA0WEUpmOEO98I5x0Li6n+NK4DPTJTvGJjfWx4AQ4iTtsz/hTHDGYtMQuoY=
cache: cache:
directories: directories:
- '$HOME/.npm' - "$HOME/.npm"
script: npm run build
deploy:
provider: s3
access_key_id: ztDf0fCxr0eCgSIi
secret_access_key:
secure: QzoeJUI0ojAl6Te3Fd/RzF8bYqzON00x25K7bnHDSFkFjNXy8OSdoZqlFm5erbxA3ZTgvuheCeVXPYsED7qw7/IcycQFTsYhYcc8kQkqNEgumPEURt0U4AY/o4RUjIRIZeJhcF15Fz86j8JYNRP/KnSKVoBX8IMWhbPzPjsnymo=
bucket: mycard
skip_cleanup: true
local-dir: dist
upload-dir: store
endpoint: https://minio.mycard.moe:9000
notifications: notifications:
webhooks: webhooks:
urls: https://api.mycard.moe/notify/travis urls: https://api.mycard.moe/notify/travis
on_cancel: never on_cancel: never
script: npm run build
before_deploy:
- curl --location --retry 5 --output ossutil "https://ossutil-version-update.oss-cn-hangzhou.aliyuncs.com/$(curl --location --retry 5 https://ossutil-version-update.oss-cn-hangzhou.aliyuncs.com/ossutilversion)/ossutil64"
- chmod +x ossutil
- ./ossutil config --endpoint oss-cn-hangzhou.aliyuncs.com --access-key-id $ALIYUN_ID
--access-key-secret $ALIYUN_SECRET
deploy:
provider: script
script: ./ossutil cp -rf dist oss://mycard/store
skip_cleanup: true
on:
branch: master
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build --prod --base-href https://cdn01.moecube.com/store/mycard-store/ --deploy-url https://cdn01.moecube.com/store/mycard-store/", "build": "ng build --prod --source-map --deploy-url https://cdn01.moecube.com/store/",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<nz-header id="nav-header" class="nav"> <nz-header id="nav-header" class="nav">
<img class="logo" src="https://cdn01.moecube.com/store/zh-CN/assets/logo.png" /> <img class="logo" src="https://cdn01.moecube.com/store/zh-CN/assets/logo.png" />
<ul id="nav-ul" nz-menu [nzTheme]="'dark'" [nzMode]="'horizontal'" style="line-height: 64px;"> <ul id="nav-ul" nz-menu [nzTheme]="'dark'" [nzMode]="'horizontal'" style="line-height: 64px;">
<a href="https://mycard.moe/">首页</a> <li nz-menu-item><a href="https://mycard.moe/">首页</a></li>
<a href="https://ygobbs.com/">社区</a> <li nz-menu-item><a href="https://ygobbs.com/">社区</a></li>
<a href="https://mycard.moe/ygopro/arena/index.html#/">决斗数据库</a> <li nz-menu-item><a href="https://mycard.moe/ygopro/arena/index.html#/">决斗数据库</a></li>
<a href="https://event.ygobbs.com/">赛事系统</a> <li nz-menu-item><a href="https://event.ygobbs.com/">赛事系统</a></li>
<a href="https://accounts.moecube.com/profiles">用户中心</a> <li nz-menu-item><a href="https://accounts.moecube.com/profiles">用户中心</a></li>
<a href="https://accounts.moecube.com/signup">注册账号</a> <li nz-menu-item><a href="https://accounts.moecube.com/signup">注册账号</a></li>
</ul> </ul>
</nz-header> </nz-header>
</nz-affix> </nz-affix>
......
<!doctype html> <!doctype html>
<html lang="en"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>MycardStore</title> <title>MyCard - 萌卡</title>
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment