Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
C
cmscenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
cmscenter
Commits
d1586435
Commit
d1586435
authored
Jul 15, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5d07be5c
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
.gitlab-ci.yml
.gitlab-ci.yml
+12
-10
config.yml
static/admin/config.yml
+4
-0
No files found.
.gitlab-ci.yml
View file @
d1586435
...
...
@@ -22,6 +22,8 @@ compile_articles:
-
node utils/articleAggregate.js
-
git remote show origin
-
sh utils/commit.sh
-
rm -r /home/gitlab-runner/deploy/cms/ronghui/out
-
cp -r out /home/gitlab-runner/deploy/cms/ronghui
# compress_images:
# stage: build
...
...
@@ -52,16 +54,16 @@ deploy:
-
/home/gitlab-runner/sh/ossutil64 cp -f out oss://touhou-cms/ -r
preview
:
stage
:
deploy
# when: manual
environment
:
name
:
preview
script
:
-
yarn
-
npm run export
-
rm -r /home/gitlab-runner/deploy/cms/ronghui/out
-
cp -r out /home/gitlab-runner/deploy/cms/ronghui
#
preview:
#
stage: deploy
#
# when: manual
#
environment:
#
name: preview
#
script:
#
- yarn
#
- npm run export
#
- rm -r /home/gitlab-runner/deploy/cms/ronghui/out
#
- cp -r out /home/gitlab-runner/deploy/cms/ronghui
...
...
static/admin/config.yml
View file @
d1586435
...
...
@@ -36,6 +36,10 @@ collections:
name
:
"
frontPage"
file
:
"
content/frontPage.md"
fields
:
-
label
:
'
articles'
name
:
"
articles"
widget
:
list
fields
:
-
{
label
:
"
Title"
,
name
:
"
title"
,
widget
:
"
string"
}
-
{
label
:
"
type"
,
name
:
"
type"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
createDate"
,
name
:
"
createDate"
,
widget
:
"
datetime"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment