Coder Social home page Coder Social logo

hexo-deploy-docker-action-with-theme's Introduction

hexo-deploy-docker-action-with-theme

deploy hexo static blog through docker action ,which support cname and theme

This GitHub action will handle the building and deploying process of hexo.

Getting Started

You can view an example of this below.

name: Build and Deploy
on: [push]
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/[email protected]

    - name: Build and Deploy
      uses: chengzhangHu/hexo-deploy-docker-action-with-theme@master
      env:
        USER_NAME: chengzhangHu # optional
        EMAIL: [email protected] # optional
        CNAME: blog.github.com # optional
        PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        PUBLISH_REPOSITORY: chengzhangHu/chengzhangHu.github.io # The repository the action should deploy to.
        BRANCH: dev  # The branch the action should deploy to.
        PUBLISH_DIR: ./public # The folder the action should deploy.
        THEME_BRANCH: dev # The theme branch to clone 
        THEME_REPOSITORY: chengzhangHu/hexo-theme-vexo

if you want to make the workflow only triggers on push events to specific branches, you can like this:

on:
  push:	
    branches:	
      - master

Configuration

The env portion of the workflow must be configured before the action will work. You can add these in the env section found in the examples above. Any secrets must be referenced using the bracket syntax and stored in the GitHub repositories Settings/Secrets menu. You can learn more about setting environment variables with GitHub actions here.

Below you'll find a description of what each option does.

Key Value Information Type Required
PERSONAL_TOKEN Depending on the repository permissions you may need to provide the action with a GitHub Personal Access Token in order to deploy. You can learn more about how to generate one here. This should be stored as a secret. secrets Yes
PUBLISH_REPOSITORY The repository the action should deploy to. for example chengzhangHu/chengzhangHu.github.io env Yes
BRANCH The branch the action should deploy to. for example master env Yes
PUBLISH_DIR The folder the action should deploy. for example ./public env Yes

hexo-deploy-docker-action-with-theme's People

Contributors

chengzhanghu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.