Skip to content

Ancientwood/action-hexo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for NPM

This Action for hexo enables arbitrary actions with the hexo command-line client

Usage

An example workflow to clean, generate, and deploy an hexo to the default public registry follows:

workflow "Clean, Generate, and Deploy" {
  on = "push"
  resolves = ["Deploy"]
}

action "Clean" {
  uses = "heowc/action-hexo@master"
  args = "clean"
}

action "Generate" {
  needs = "Clean"
  uses = "heowc/action-hexo@master"
  args = "generate"
}

action "Deploy" {
  needs = "Generate"
  uses = "heowc/action-hexo@master"
  args = "deploy"
  env = {
    NAME = "input name ..."
    EMAIL = "input email ..."
  }
}

Environment variables

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 83.8%
  • Shell 16.2%