Skip to content

Commit 86ae440

Browse files
committed
添加page流程
1 parent eab0f8c commit 86ae440

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/public_page.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Public page CI
2+
on:
3+
push:
4+
branches: [ public_page ]
5+
#pull_request:
6+
# branches: [ main ]
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-gh-pages:
12+
runs-on: ubuntu-latest
13+
steps:
14+
#- uses: actions/checkout@master
15+
16+
- name: Checkout Repository backup branch
17+
uses: actions/checkout@master
18+
19+
- name: Setup Node.js lts
20+
uses: actions/setup-node@master
21+
with:
22+
node-version: "22.x"
23+
24+
# - name: Setup pandoc.deb lts # 插件 hexo-renderer-pandoc 依赖于此软件
25+
# run: |
26+
# wget https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-amd64.deb
27+
# sudo dpkg -i pandoc-2.17.1.1-1-amd64.deb
28+
29+
# - name: Setup Hexo Dependencies
30+
# env:
31+
# HEXO_DEPLOY_PRIVATE_KEY: ${{ secrets.HEXO_DEPLOY_PRIVATE_KEY }}
32+
# run: |
33+
# mkdir -p ~/.ssh/
34+
# echo "$HEXO_DEPLOY_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
35+
# chmod 600 ~/.ssh/id_rsa
36+
# ssh-keyscan github.com >> ~/.ssh/known_hosts
37+
# git config --global user.name 'simon7073'
38+
# git config --global user.email '[email protected]'
39+
# npm install hexo -g
40+
# npm install
41+
42+
43+
- name: server Hexo
44+
run: |
45+
hexo server

0 commit comments

Comments
 (0)