Skip to content
No description, website, or topics provided.
Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Feb 2, 2019
Dockerfile #1 Bug Report Apr 2, 2019
LICENSE Initial commit Feb 2, 2019
README.md fix README Aug 15, 2019
entrypoint.sh fix README Feb 2, 2019

README.md

GitHub Action for Hexo

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:

1. HCL syntax (not recommend, it will be deprecated on September 30, 2019)

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 ..."
  }
}

2. YAML syntax (recommed, how to migration)

on: push
name: Deploy
jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: Clean
      uses: heowc/action-hexo@master
      with:
        args: clean
    - name: Generate
      uses: heowc/action-hexo@master
      with:
        args: generate
    - name: Deploy
      uses: heowc/action-hexo@master
      env:
        EMAIL: input emial ...
        NAME: 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 ""

You can’t perform that action at this time.