-
Beta Was this translation helpful? Give feedback.
Answered by
JIeJaitt
Jun 17, 2023
Replies: 1 comment
-
解决了,需要把主题的仓库设为子模块。这里分享下我的脚本: name: Build and Deploy Hexo
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
with:
submodules: true
- name: Use Node.js 16
uses: actions/setup-node@v2-beta
with:
node-version: '16'
- name: update Theme 🎨
run: git submodule update --remote themes/icarus
- name: Install and Build 🔧
run: |
npm install -g hexo-cli
npm install
hexo clean
hexo generate
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ./public
BASE_BRANCH: main |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JIeJaitt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
解决了,需要把主题的仓库设为子模块。这里分享下我的脚本: