fix: 更新ubuntu版本,修改自动构建失败问题 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |