Giter Site home page Giter Site logo

leko / reg-publish-github-pages-plugin Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 1.71 MB

A reg-suit plugin to publish reports on GitHub pages

License: MIT License

HTML 1.87% TypeScript 98.13%
nodejs regression-testing visual-tests automation-tests reg-suit

reg-publish-github-pages-plugin's Introduction

reg-publish-github-pages-plugin

version LICENSE

A reg-suit plugin to fetch and publish assets to the GitHub pages.

How it works

overview

The plugin will create orphan branch when you run reg-suit prepare -p publish-github-pages. Then the plugin will commit report pages and images to the branch whenever you run reg-suit run. The branch has completely different tree from your branches. It doesn't affect any existing branches. So you can use it in the same repository you want to introduce reg-suit.

Install

npm i -D reg-publish-github-pages-plugin
reg-suit prepare -p publish-github-pages

Setup

You need to configure GitHub pages before using this plugin.
See the official documentation

Configure

{
  repository: string;
  branchName: string;
  token: string;
  customDomain?: string;
  pathPrefix?: string;
}
  • repository - Required - A repository name in the form of owner/name such as Leko/reg-publish-github-pages-plugin.
  • branchName - Required - A branch name for the GitHub pages.
  • token - Required - A GitHub token. The token must have user:email and public_repo permission. When the repository is private, the token requires repo permission instead of public_repo.
  • customDomain - Optional - A custom domain when you set it to the GitHub pages.
  • pathPrefix - Optional - Specify paths. For example, when you set some_dir as this property, this plugin will publish with URL such as https://{TODO}/some_dir/index.html.

See also

LICENSE

This repository is under MIT license.

reg-publish-github-pages-plugin's People

Contributors

dependabot[bot] avatar leko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yuntara

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.