Skip to content

wstreet/blog

Repository files navigation

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