Skip to content

Commit

Permalink
2020/10/03 周六 22:30:57.47: 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 e68de00
Show file tree
Hide file tree
Showing 197 changed files with 17,205 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 Blog Yun Site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Update Blog Yun 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 -v
hexo clean
hexo generate
- 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/yun.git" master:master
git push --force --quiet "https://ccknbc:${{ secrets.GT_TOKEN }}@gitee.com/ccknbc/yun.git" master:master
git push --force --quiet "https://${{ secrets.CD_USER }}:${{ secrets.CD_TOKEN }}@e.coding.net/ccknbc/blog/yun.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/yun
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*/
18 changes: 18 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/hexo
image: node:12-alpine

pages:
script:
- npm install hexo-cli -g
- test -e package.json && npm install
- hexo generate
artifacts:
paths:
- public
cache:
paths:
- node_modules
key: project
only:
- master
Loading

0 comments on commit e68de00

Please sign in to comment.