GithubHelp home page GithubHelp logo

zenghongtu / github-issue-to-hexo Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 6.07 MB

aciont for github issue to hexo

License: MIT License

TypeScript 100.00%
github-actions hexo hexo-blog issues actions

github-issue-to-hexo's Introduction

github-issue-to-hexo

GitHub Action which converts GitHub Issue to Hexo post.

Example

zenghongtu/blog

Usage

name: Issue to Hexo
on:
  issues:
    # Sufficient to trigger this workflow when an issue is unlabeled, labeled, edited, milestoned
    types: [unlabeled, labeled, edited, milestoned]

jobs:
  build:
    runs-on: ubuntu-latest
    if: ${{ github.actor == github.repository_owner }}
    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js 16.x
        uses: actions/setup-node@v2
        with:
          node-version: '16'    
      # use here
      - uses: zenghongtu/[email protected]
        with:
          owner: ${{ github.repository_owner }}
          repo: ${{ github.event.repository.name }}
          token: ${{ secrets.GITHUB_TOKEN }}
          ## optional below
          milestone: 'publish'
          output: './'
      # - name: Commit report
      #   run: |
      #     git config --global user.name 'GitHub Action'
      #     git config --global user.email '[email protected]'
      #     git pull
      #     git add .
      #     git commit -m "update posts"
      #     git push
      #   env:
      #     PUSH_KEY: ${{ secrets.PUSH_KEY }}
      - name: Install Dependencies
        run: yarn install
      - name: Build
        run: yarn run build
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: './public'

concurrency: 
  group: ${{ github.workflow }}-${{ github.event.issue.number }}
  cancel-in-progress: true   

github-issue-to-hexo's People

Contributors

zenghongtu avatar

Stargazers

 avatar EthanZhu avatar

Watchers

 avatar  avatar

Forkers

inwocy

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.