From febf5c9de5e3ea8f7737adea23e690c56b244c6e Mon Sep 17 00:00:00 2001 From: Adhithya Ananthan <85322002+adhi0331@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:54:31 -0800 Subject: [PATCH] Feature/adhithya/deployment for admin portal (#175) * added temp file * added test deployment script * renamed branch * updated branch * added small lines * changed branch to main --- .github/workflows/admin-portal.yml | 21 +++++++++++++++++++ .../src/app/(authorized)/mentees/page.tsx | 2 +- .../src/app/(authorized)/mentors/page.tsx | 2 +- .../src/app/(authorized)/sessions/page.tsx | 2 +- 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/admin-portal.yml diff --git a/.github/workflows/admin-portal.yml b/.github/workflows/admin-portal.yml new file mode 100644 index 00000000..727b98b3 --- /dev/null +++ b/.github/workflows/admin-portal.yml @@ -0,0 +1,21 @@ +name: Vercel Production Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches: + - main +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} diff --git a/admin-portal/src/app/(authorized)/mentees/page.tsx b/admin-portal/src/app/(authorized)/mentees/page.tsx index 5ccb9746..92dc6e63 100644 --- a/admin-portal/src/app/(authorized)/mentees/page.tsx +++ b/admin-portal/src/app/(authorized)/mentees/page.tsx @@ -2,7 +2,7 @@ export default function MenteesPage() { return ( <>
-
{'This is the mentees page!'}
+
{'This is the mentees page! Here you will find all information regarding the mentees.'}
); diff --git a/admin-portal/src/app/(authorized)/mentors/page.tsx b/admin-portal/src/app/(authorized)/mentors/page.tsx index c38cabd7..44d817bd 100644 --- a/admin-portal/src/app/(authorized)/mentors/page.tsx +++ b/admin-portal/src/app/(authorized)/mentors/page.tsx @@ -2,7 +2,7 @@ export default function MentorsPage() { return ( <>
-
{'This is the mentors page!'}
+
{'This is the mentors page! Here you will find all information regarding the mentors'}
); diff --git a/admin-portal/src/app/(authorized)/sessions/page.tsx b/admin-portal/src/app/(authorized)/sessions/page.tsx index 6a94f9f8..4465f5bf 100644 --- a/admin-portal/src/app/(authorized)/sessions/page.tsx +++ b/admin-portal/src/app/(authorized)/sessions/page.tsx @@ -2,7 +2,7 @@ export default function SessionsPage() { return ( <>
-
{'This is the sessions page!'}
+
{'This is the sessions page! Here you will find all information regarding the sessions'}
);