https://github.com/chadnpc/deploy-react-to-ghpages
GitHub action to build and deploy react to gh-pages
https://github.com/chadnpc/deploy-react-to-ghpages
Last synced: 4 months ago
JSON representation
GitHub action to build and deploy react to gh-pages
- Host: GitHub
- URL: https://github.com/chadnpc/deploy-react-to-ghpages
- Owner: chadnpc
- License: mit
- Created: 2022-11-18T07:03:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T09:30:10.000Z (about 3 years ago)
- Last Synced: 2025-06-26T11:03:00.679Z (12 months ago)
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Build and deploy react to gh-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.
```yaml
- name: Deploy react to gh-pages
uses: alainQtec/deploy-react-to-ghpages@1.0.0-beta.2
```
## Use case Example
Create `build-and-deploy.yml` in [`.github/workflows/`](#/tree/main/.github/workflows)
Set its content to:
```yaml
name: Build and deploy to gh-pages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy react to gh-pages
uses: alainQtec/deploy-react-to-ghpages@1.0.0-beta.2
```
That's it!