File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments