Commit d1586435 authored by 吕祺's avatar 吕祺 ⛹🏽

fix

parent 5d07be5c
......@@ -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
......
......@@ -35,6 +35,10 @@ collections:
- label: "frontPage"
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}
......
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