Skip to content

Commit

Permalink
added automatic workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
2402PiyushKi committed Jan 15, 2024
1 parent 48ddaa1 commit 6ac9053
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy to GitHub Pages
'on':
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build the React app
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
publish_dir: ./build

0 comments on commit 6ac9053

Please sign in to comment.