-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2020/10/03 周六 22:32:19.80: Updated By CCKNBC Local
- Loading branch information
0 parents
commit 402e3bd
Showing
140 changed files
with
26,410 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 中再进行评论。 | ||
谢谢配合! | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.