Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
bitovi

GitHub Action

Deploy React to GitHub Pages

v1.0.0

Deploy React to GitHub Pages

bitovi

Deploy React to GitHub Pages

Build and deploy react code to GitHub pages

Installation

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

              

- name: Deploy React to GitHub Pages

uses: bitovi/github-actions-react-to-github-pages@v1.0.0

Learn more about this action in bitovi/github-actions-react-to-github-pages

Choose a version

React to GitHub Pages

GitHub action to build and deploy React to GitHub Pages. This uses the new GitHub Actions method as the source. In the repository settings, go to Pages. Under Source, select GitHub Actions. No further configuration is needed.

Customizing

Inputs

The following inputs can be used as step.with keys

Name Type Description
checkout T/F Set to false if the code is already checked out (Default is true) (Optional)

Example usage

Create .github/workflow/deploy.yaml with the following to build on push.

on:
  push:
    branches:
      - 'main'

jobs:
  build-deploy:
    runs-on: ubuntu-latest
    steps:
    - id: build-publish
      uses: bitovi/github-actions-react-to-ghp@v1.0.0

Contributing

We would love for you to contribute to bitovi/github-actions-react-to-ghp. Issues and Pull Requests are welcome!

License

The scripts and documentation in this project are released under the MIT License.

Provided by Bitovi

Bitovi is a proud supporter of Open Source software.