Skip to content
code

GitHub Action

Deploy react app to github pages

v1.0.1 Latest version

Deploy react app to github pages

code

Deploy react app to github pages

This action will automate the process of building and depolying react app in gh-pages branch

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Deploy react app to github pages

uses: tanwanimohit/deploy-react-to-ghpages@v1.0.1

Learn more about this action in tanwanimohit/deploy-react-to-ghpages

Choose a version

Deploy React app to gh-pages

This Action will automate the process of building and depolying react app to gh-pages.

Action

Add this action inside your Repository's Actions

name: React app deployment

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v2

    - name: Deploy react app to github pages
      uses: tanwanimohit/deploy-react-to-ghpages@v1.0.2