format content #268
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: deploying Hexo project to GitHub pages | |
on: | |
push: | |
branches: | |
- hexo # hexo 分支有 push 行为时就触发这个 action | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build and Deploy | |
uses: dongzl/hexo-deploy-github-pages-action@master # 使用专门部署 Hexo 到 GitHub pages 的 action | |
env: | |
PERSONAL_TOKEN: ${{ secrets.HEXO_DEPLOY }} # secret 名 | |
PUBLISH_REPOSITORY: dongzl/dongzl.github.io # 公共仓库,格式:GitHub 用户名/仓库名 | |
BRANCH: master # 分支,填 gh-pages 就行 | |
PUBLISH_DIR: ./public # 部署 public 目录下的文件 |