Skip to content

JWLAZY/action-hexo

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Hexo

这个用于 hexo 的操作可以通过 hexo 命令行客户端执行任意操作。

Usage

一个用于清理、生成和部署 Hexo 到默认公共仓库的示例工作流程如下:

YAML syntax

on: push
name: Deploy
jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: Clean
      uses: heowc/action-hexo@main
      with:
        args: clean
    - name: Generate
      uses: heowc/action-hexo@main
      with:
        args: generate
    - name: Deploy
      uses: heowc/action-hexo@main
      env:
        EMAIL: <your-input-email>
        NAME: <your-input-name>
      with:
        args: deploy

Environment variables

If using hexo-deployer-git when Deploy action,

  • NAME - Optional. To specify a name when deploying. Defaults to ""

  • EMAIL - Optional. To specify a name when deploying. Defaults to ""

About

hexo构建的action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 87.1%
  • Shell 12.9%