Skip to content

Commit

Permalink
2020/10/03 周六 22:32:19.80: Updated By CCKNBC Local
Browse files Browse the repository at this point in the history
  • Loading branch information
CCKNBC committed Oct 3, 2020
0 parents commit 402e3bd
Show file tree
Hide file tree
Showing 140 changed files with 26,410 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/comment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: comment
about: Article comments - 文章评论
title: 这里填写你评论的文章的名称 · CC的部落格
labels: 💬comment
assignees: ''

---

文章链接:<https://ccknbc.github.io/>

<!--
- 发起前请先检查是否已存在该文章 Issue。请不要重复建立相同 Issue。
- 请替换上方文章链接为你评论的文章链接。
- 请在发起后的 Issue 中再进行评论。
谢谢配合!
-->
74 changes: 74 additions & 0 deletions .github/workflows/Update Daohang Site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Update Daohang Site

on:
release:
types: [published]
push:
tags:
- 'v*'
branches:
- master
workflow_dispatch:
inputs:
name:
description: '手动触发'
required: false

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "12.x"

- name: Install HEXO CI
run: |
npm install hexo-cli -g
- name: Catch
uses: actions/cache@v2
id: cache-dependencies
with:
path: node_modules
key: ${{runner.OS}}-${{hashFiles('**/package-lock.json')}}

- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
npm install
- name: Generate
run: |
rm -rf ./public
rm -rf ./db.json
rm -rf ./.deploy_git
hexo clean
hexo generate
gulp
- name: Deploy
run: |
cd ./public
git init
git config --global user.name "ccknbc"
git config --global user.email '${{ secrets.GIT_EMAIL }}'
git add -A
git commit -m "Updated By Github Actions"
git push --force --quiet "https://ccknbc:${{ secrets.GH_TOKEN }}@github.com/ccknbc/daohang.git" master:master
git push --force --quiet "https://ccknbc:${{ secrets.GT_TOKEN }}@gitee.com/ccknbc/daohang.git" master:master
git push --force --quiet "https://${{ secrets.CD_USER }}:${{ secrets.CD_TOKEN }}@e.coding.net/ccknbc/blog/daohang.git" master:master
- name: Update Gitee Pages
uses: yanglbme/gitee-pages-action@master
with:
gitee-username: ccknbc
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: ccknbc/daohang
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
17 changes: 17 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
image: node:12-alpine

pages:
script:
- npm install hexo-cli gulp-cli -g
- test -e package.json && npm install
- hexo generate
- gulp
artifacts:
paths:
- public
cache:
paths:
- node_modules
key: project
only:
- master
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/landscape"]
path = themes/landscape
url = https://github.com/hexojs/hexo-theme-landscape.git
Loading

0 comments on commit 402e3bd

Please sign in to comment.