Giter VIP home page Giter VIP logo

gh-pages's Introduction

mysticatea-actions/gh-pages

Build Status Dependency Status

An action that publishes GitHub Pages with a directory.

๐Ÿ“– Usage

Configure your workflow.

Action Name

mysticatea-actions/gh-pages@v0

Parameters

Name Description
token Required. GitHub Token to push.
sourceDir Required. The directory that contains the contents of GitHub Pages.
commitUserName Optional. The name of commit user. Default is $GITHUB_ACTOR.
commitUserEmail Optional. The email of commit user. Default is [email protected].
commitMessage Optional. The commit message. Default is "Update Website".

Example

name: CI
on:
  push:
    branches: [master]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-node@v1
      - name: Install Packages
        run: npm install
      - name: Build
        run: npm run -s build

      # Publish!
      - name: Publish GitHub Pages
        uses: mysticatea-actions/gh-pages@v0
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          sourceDir: path/to/built/docs

Development Tools

  • npm test ... Run tests.
  • npm version <how> ... Bump a version and release it. The <how> is one of patch, minor, major, and etc. See https://docs.npmjs.com/cli/version for details. This will do the following steps:
    1. Check the code with ESLint and TypeScript compiler.
    2. Run tests.
    3. Bump version.
    4. Build the code.
    5. Release it with scripts/release.ts script.
  • npm run build ... Build code then create dist directory.

gh-pages's People

Contributors

mysticatea avatar

Stargazers

 avatar  avatar  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.