Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 589 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 589 Bytes

blog

采用hexo作为博客系统

  • master: blog源码
  • gh-pages: 编译文件

GitHub actions自动编译部署

name: Deploy
on:
  push:
    branches: master

jobs:
  Build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@master

      - name: Deploy...
        uses: JamesIves/github-pages-deploy-action@master
        env:
          ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
          BRANCH: gh-pages
          FOLDER: public
          BUILD_SCRIPT: npm install && npm install hexo-cli -g && hexo generate