@ -5,9 +5,6 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
DEPLOYED_DIR: /opt/1panel/apps/openresty/openresty/www/sites/hexoblog/index
|
||||
|
||||
jobs:
|
||||
Deploy-Hexo_Blog:
|
||||
name: Deploy blog
|
||||
@ -15,24 +12,19 @@ jobs:
|
||||
steps:
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
|
||||
- name: Configure
|
||||
- name: Configure Node
|
||||
run: npm config set registry https://registry.npmmirror.com
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
|
||||
# - name: Set up Node.js
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: '16.18'
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
npm install
|
||||
npm run clean
|
||||
npm run build
|
||||
- name: Deploy
|
||||
- name: Deploy to Home Server
|
||||
uses: easingthemes/ssh-deploy@main
|
||||
with:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
@ -42,4 +34,6 @@ jobs:
|
||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||
EXCLUDE: "/public/, /node_modules/"
|
||||
- name: Deploy to GitHub Pages
|
||||
run: npm run deploy
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
@ -80,7 +80,7 @@ favicon: /img/favicon16x16.png
|
||||
|
||||
# Avatar (頭像)
|
||||
avatar:
|
||||
img: /img/avatar.png
|
||||
img: /img/avatar.jpeg
|
||||
effect: false
|
||||
|
||||
# Disable all banner image
|
||||
@ -90,7 +90,7 @@ disable_top_img: false
|
||||
index_img: /img/index_img.png
|
||||
|
||||
# If the banner of page not setting, it will show the top_img
|
||||
default_top_img: https://s2.loli.net/2022/08/14/OSlNBJfUAcWYIdF.png
|
||||
default_top_img: /img/default_banner.png
|
||||
|
||||
# The banner image of archive page
|
||||
archive_img:
|
||||
@ -123,10 +123,10 @@ cover:
|
||||
position: both
|
||||
# When cover is not set, the default cover is displayed (當沒有設置cover時,默認的封面顯示)
|
||||
default_cover:
|
||||
- https://s2.loli.net/2022/08/14/4bGjC1YzqQpIKBZ.jpg
|
||||
- https://s2.loli.net/2022/08/14/7J9RvVH8husy5BE.png
|
||||
- https://s2.loli.net/2022/08/14/OSlNBJfUAcWYIdF.png
|
||||
- https://s2.loli.net/2022/08/14/FWfoLexXQO1HDtA.png
|
||||
- /img/default_cover1.png
|
||||
- /img/default_cover2.png
|
||||
- /img/default_banner.png
|
||||
- /img/default_cover3.png
|
||||
|
||||
|
||||
# Replace Broken Images (替換無法顯示的圖片)
|
||||
@ -138,7 +138,7 @@ error_img:
|
||||
error_404:
|
||||
enable: true
|
||||
subtitle: 'Page Not Found'
|
||||
background: https://i.loli.net/2020/05/19/aKOcLiyPl2JQdFD.png
|
||||
background: /img/page_404.png
|
||||
|
||||
post_meta:
|
||||
page: # Home Page
|
||||
|
||||
BIN
source/img/avatar.jpeg
Normal file
|
After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 358 KiB |
BIN
source/img/default_banner.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
source/img/default_cover1.jpg
Normal file
|
After Width: | Height: | Size: 656 KiB |
BIN
source/img/default_cover2.png
Normal file
|
After Width: | Height: | Size: 847 KiB |
BIN
source/img/default_cover3.png
Normal file
|
After Width: | Height: | Size: 781 KiB |
BIN
source/img/page_404.png
Normal file
|
After Width: | Height: | Size: 18 KiB |