Skip to content

Commit

Permalink
feat: vercel deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
csuvajit committed Oct 24, 2024
1 parent 82a245d commit 9596eb4
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- main
jobs:
Deploy-Preview:
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=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/release-prod.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 9 additions & 2 deletions components/Login.tsx → app/(legal)/expired/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ import Button from '@mui/material/Button';
import Container from '@mui/material/Container';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';
import { NextPage } from 'next';
import toast from 'react-hot-toast';
import { FaDiscord } from 'react-icons/fa';

export default function LoginPage() {
const ExpiredPage: NextPage = () => {
return <LoginPage />;
};

const LoginPage = () => {
return (
<Container
maxWidth="xs"
Expand Down Expand Up @@ -44,4 +49,6 @@ export default function LoginPage() {
</Typography>
</Container>
);
}
};

export default ExpiredPage;
2 changes: 1 addition & 1 deletion app/links/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getServerSideProps = async () => {
};
} catch (e) {
console.error(e);
return redirect('/');
return redirect('/expired');
}
};

Expand Down
2 changes: 1 addition & 1 deletion app/rosters/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const getServerSideProps = async () => {
};
} catch (e) {
console.error(e);
return redirect('/');
return redirect('/expired');
}
};

Expand Down

0 comments on commit 9596eb4

Please sign in to comment.