Skip to content

Commit

Permalink
github action updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mhShohan committed Feb 25, 2024
1 parent 51cf3d2 commit 7b6f274
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/client.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Inventory Client Deployment

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

on:
push:
paths:
Expand All @@ -12,19 +8,27 @@ on:
- main

jobs:
Deploy-Production:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Vercel CLI
run: npm install --global vercel
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 14

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Install dependencies
run: npm install

- name: Build Project Artifacts
run: npm run build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Build
run: npm run build

- name: Deploy Project Artifacts
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel
uses: amondnet/vercel-deployment@v1
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel_scope: ${{ secrets.VERCEL_SCOPE }}
2 changes: 1 addition & 1 deletion client/src/pages/NotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const NotFound = () => {
style={{ border: '1px solid #000', padding: '3rem', borderRadius: '.8rem' }}
>
<h1>404! Not Found...</h1>
<h3>Your requested page does not exists...</h3>
<h3>Your requested page does not exists...!!!</h3>
<Button type='primary' onClick={handleClick}>
Go Back
</Button>
Expand Down

0 comments on commit 7b6f274

Please sign in to comment.