feat: 补充算法-二分和回溯 #35
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-latest | |
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/github-pages-deploy-action@v4 | |
with: | |
branch: master | |
folder: public | |
ssh-key: ${{ secrets.HEXO_DEPLOY_KEY }} |