Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhjain1712 committed Sep 1, 2024
1 parent 1a9cb98 commit 7e380b4
Show file tree
Hide file tree
Showing 54 changed files with 45,124 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,31 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- main # Trigger on push to main branch
- main # or your default branch

jobs:
build:
deploy:
name: Deploy React App to GitHub Pages
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3 # Latest version of checkout action
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14' # or the version of Node.js you are using

- name: Install dependencies
run: npm install

- name: Configure Git
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
- name: Build
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4 # Latest version of gh-pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # Provided by GitHub
publish_dir: ./ # The directory to deploy
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: gh-pages
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
File renamed without changes.
Loading

0 comments on commit 7e380b4

Please sign in to comment.