Skip to content

fix: 更新ubuntu版本,修改自动构建失败问题 #27

fix: 更新ubuntu版本,修改自动构建失败问题

fix: 更新ubuntu版本,修改自动构建失败问题 #27

Workflow file for this run

name: Hexo Deploy
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-22.04
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
ref: dev
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Setup Hexo
run: |
npm install hexo-cli -g
npm install
- name: Build
run: |
hexo clean
hexo generate
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: master
folder: public
ssh-key: ${{ secrets.HEXO_DEPLOY_KEY }}