Skip to content

Commit

Permalink
fix: CI initialize hexo site first
Browse files Browse the repository at this point in the history
Signed-off-by: Cerallin <cerallin@cerallin.top>
  • Loading branch information
Cerallin committed Apr 1, 2024
1 parent d1d5a57 commit 7d28b23
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: themes/hexo-theme-yuzu

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}


- name: Init a hexo site
run: |
npm i hexo -g
hexo init
- name: Install node modules
run: |
npm install
Expand All @@ -38,5 +38,10 @@ jobs:
- name: Modify _config.yml
run: cat themes/hexo-theme-yuzu/_root_config_example.yml >> _config.yml

- name: Checkout hexo-theme-yuzu
uses: actions/checkout@v4
with:
path: themes/hexo-theme-yuzu

- name: Build assets
run: npm run build

0 comments on commit 7d28b23

Please sign in to comment.