From 7d6b91070e2f1b26ded3749bd04e41cc033995e9 Mon Sep 17 00:00:00 2001 From: dev-phantom Date: Sat, 28 Jan 2023 20:01:40 +0100 Subject: [PATCH] preparing for hosting --- .github/workflows/deploycPanel.yml | 31 ++++++++++++++++++++++++++++++ src/App.tsx | 2 +- src/Components/Dashboard.tsx | 1 - src/Components/Navbar.tsx | 14 +------------- 4 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/deploycPanel.yml diff --git a/.github/workflows/deploycPanel.yml b/.github/workflows/deploycPanel.yml new file mode 100644 index 0000000..0e8ccb3 --- /dev/null +++ b/.github/workflows/deploycPanel.yml @@ -0,0 +1,31 @@ +on: + push: + branches: master + +name: 🚀 Deploy website on push +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v2 + + - name: Use Node.js 16 + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: 🔨 Build Project + run: | + npm install + npm run build + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@4.3.2 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + dangerous-clean-slate: true + local-dir: ./build/ diff --git a/src/App.tsx b/src/App.tsx index ddb81bb..c7d4aff 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,7 +10,7 @@ import ForgotPassword from './Pages/ForgotPassword' function App() { return ( - + } /> } /> } /> diff --git a/src/Components/Dashboard.tsx b/src/Components/Dashboard.tsx index 8364de0..a40ce06 100644 --- a/src/Components/Dashboard.tsx +++ b/src/Components/Dashboard.tsx @@ -11,7 +11,6 @@ import { ToastContainer, toast } from 'react-toastify'; const Dashboard = () => { - let navigate = useNavigate(); let useId = getStorage() const [isLoading, setLoading] = useState(true); const [favouritesNo , setFav] = useState(0); diff --git a/src/Components/Navbar.tsx b/src/Components/Navbar.tsx index ce29fa9..b523b3d 100644 --- a/src/Components/Navbar.tsx +++ b/src/Components/Navbar.tsx @@ -24,19 +24,7 @@ const Navbar = () => {
- {/* - - */} +