Skip to content

Commit

Permalink
workflow: working out on deploy automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Dec 20, 2023
1 parent 90b434e commit 74e5941
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
env:
GH_CPANEL: ${{ secrets.GH_CPANEL }}
run: |
cd client
git add .
git commit -m "Build for deployment"
git push https://${GH_CPANEL}@github.com/Shubham-Lal/GitHub-Clone.git HEAD:main
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Build for deployment"
git push https://${GH_CPANEL}@github.com/Shubham-Lal/GitHub-Clone.git HEAD:main
else
echo "No changes to commit"
fi
17 changes: 12 additions & 5 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# React + Vite
# GitHub Clone

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
__[Live Site](https://my-github.pages.dev)__ | Currently in development mode.

Currently, two official plugins are available:
**AVAILABLE ROUTES**
- [Home/Dashboard page](https://my-github.pages.dev)
- [Login page](https://my-github.pages.dev/login)
- [Signup page](https://my-github.pages.dev/signup)
- [Account Verification page](https://my-github.pages.dev/account_verifications)
- [Join page I](https://my-github.pages.dev/join/welcome)
- [Join page II](https://my-github.pages.dev/join/recommended_plan)

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
**SETUP**
1) In your terminal, navigate to the *client* folder and run the command `npm install`.
2) After finishing the installation, execute `npm run dev` within the *client* directory. Alternatively, run `npm run client` from the *root* directory.

0 comments on commit 74e5941

Please sign in to comment.