diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 56fc3f3..44dbba3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,23 +1,37 @@ name: CI on: - push: - branches: - - src + push: + branches: + - src jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Hexo Action - uses: sma11black/hexo-action@v1.0.0 - with: - # Github user name - user_name: HanyuuLu # default is - # Github email - user_email: HanyuuFurude@outlook.com # default is - # The deploy key for Github Pages repo - deploy_key: ${{ secrets.DEPLOY_KEY }} + - name: Checkout + uses: actions/checkout@v1 + with: + submodules: true # Checkout private submodules(themes or something else). + + # Caching dependencies to speed up workflows. (GitHub will remove any cache entries that have not been accessed in over 7 days.) + - name: Cache node modules + uses: actions/cache@v1 + id: cache + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install Dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: npm ci + + - name: Hexo Action + uses: sma11black/hexo-action@v1.0.4 + with: + # The deploy key for Github Pages repo + deploy_key: ${{ secrets.DEPLOY_KEY }} + commit_msg: ${{ github.event.head_commit.message }} diff --git a/package-lock.json b/package-lock.json index 9954e28..89ba651 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "hexo-site", "version": "0.0.0", "dependencies": { - "hexo": "^6.2.0", + "hexo": "^6.3.0", "hexo-deployer-git": "^3.0.0", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", @@ -871,9 +871,9 @@ } }, "node_modules/hexo": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/hexo/-/hexo-6.2.0.tgz", - "integrity": "sha512-HOpt3vUOz/T0rWTDb/CtWuBJwYARPwbpvGwsaz0RPu/l5I6AmKE+UA0lJZf14iPS3JIt/HiOcTZ3Qz22A+PE8w==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/hexo/-/hexo-6.3.0.tgz", + "integrity": "sha512-4Jq+rWd8sYvR1YdIQyndN/9WboQ/Mqm6eax8CjrjO+ePFm2oMVafSOx9WEyJ42wcLOHjfyMfnlQhnUuNmJIpPg==", "dependencies": { "abbrev": "^1.1.1", "archy": "^1.0.0", @@ -882,8 +882,8 @@ "hexo-front-matter": "^3.0.0", "hexo-fs": "^3.1.0", "hexo-i18n": "^1.0.0", - "hexo-log": "^3.0.0", - "hexo-util": "^2.6.1", + "hexo-log": "^3.2.0", + "hexo-util": "^2.7.0", "js-yaml": "^4.1.0", "js-yaml-js-types": "^1.0.0", "micromatch": "^4.0.4", @@ -898,7 +898,7 @@ "text-table": "^0.2.0", "tildify": "^2.0.0", "titlecase": "^1.1.3", - "warehouse": "^4.0.1" + "warehouse": "^4.0.2" }, "bin": { "hexo": "bin/hexo" @@ -3066,9 +3066,9 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, "hexo": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/hexo/-/hexo-6.2.0.tgz", - "integrity": "sha512-HOpt3vUOz/T0rWTDb/CtWuBJwYARPwbpvGwsaz0RPu/l5I6AmKE+UA0lJZf14iPS3JIt/HiOcTZ3Qz22A+PE8w==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/hexo/-/hexo-6.3.0.tgz", + "integrity": "sha512-4Jq+rWd8sYvR1YdIQyndN/9WboQ/Mqm6eax8CjrjO+ePFm2oMVafSOx9WEyJ42wcLOHjfyMfnlQhnUuNmJIpPg==", "requires": { "abbrev": "^1.1.1", "archy": "^1.0.0", @@ -3077,8 +3077,8 @@ "hexo-front-matter": "^3.0.0", "hexo-fs": "^3.1.0", "hexo-i18n": "^1.0.0", - "hexo-log": "^3.0.0", - "hexo-util": "^2.6.1", + "hexo-log": "^3.2.0", + "hexo-util": "^2.7.0", "js-yaml": "^4.1.0", "js-yaml-js-types": "^1.0.0", "micromatch": "^4.0.4", @@ -3093,7 +3093,7 @@ "text-table": "^0.2.0", "tildify": "^2.0.0", "titlecase": "^1.1.3", - "warehouse": "^4.0.1" + "warehouse": "^4.0.2" } }, "hexo-cli": { diff --git a/package.json b/package.json index c337c3b..ebcf58f 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "version": "0.0.0", "private": true, "hexo": { - "version": "6.2.0" + "version": "6.3.0" }, "dependencies": { - "hexo": "^6.2.0", + "hexo": "^6.3.0", "hexo-deployer-git": "^3.0.0", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", diff --git a/themes/anodyne/_config.yml b/themes/anodyne/_config.yml index 3dcca80..6611bab 100644 --- a/themes/anodyne/_config.yml +++ b/themes/anodyne/_config.yml @@ -1,5 +1,5 @@ # Logo -logo_image_source: https://raw.githubusercontent.com/seumsc/pages/master/res/MSCWeb.png +logo_image_source: https://i.dawnlab.me/0dc314d22f04b05eaab60fd0e59c354b.png # Index Page index_banner_text: Microsoft Student Club @ SEU ~ @@ -24,7 +24,7 @@ archive_date_format: MMM YYYY archive_font_awesome_icon_css: fa-folder-open # About Widget -about_widget_avatar_url: https://raw.githubusercontent.com/seumsc/pages/master/res/MSCWeb.png +about_widget_avatar_url: https://i.dawnlab.me/0dc314d22f04b05eaab60fd0e59c354b.png about_widget_text: "这里是位于东南大学九龙湖校区的微软学生俱乐部,我们欢迎每个感兴趣的同学参与活动,予力众生,成就非凡。" diff --git a/themes/anodyne/layout/_partial/head.ejs b/themes/anodyne/layout/_partial/head.ejs index ab4769c..8f81444 100644 --- a/themes/anodyne/layout/_partial/head.ejs +++ b/themes/anodyne/layout/_partial/head.ejs @@ -72,10 +72,10 @@ <%= title.join(' - ') %> - + - +