Skip to content

Commit

Permalink
Merge branch 'dev' into Fix/unclickable-help-icon-on-dashboard-navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
64eyes authored Aug 25, 2024
2 parents bca088d + 2310a7b commit 8ec3108
Show file tree
Hide file tree
Showing 73 changed files with 2,248 additions and 1,619 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/phoenix-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pheonix Deployment

on:
workflow_run:
workflows: ["Build and Upload"]
types:
- completed

jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

environment:
name: "panther-expressjs"
url: ${{ vars.URL }}

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: boilerplate-build
path: .

- name: Decode ENV secret
run: |
echo "${{ secrets.ENV }}" > encoded_env.txt
base64 -d encoded_env.txt > .env.expressjs
- name: Copy Artifacts to server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
source: ".env.expressjs,boilerplate.tar.gz"
target: "/tmp/expressjs"

- name: Deploy on server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_nextjs
tar -xzf /tmp/expressjs/boilerplate.tar.gz
mv /tmp/expressjs/.env.expressjs .env
rm -f /tmp/expressjs/boilerplate.tar.gz
cp -r .next/standalone/* .
pm2 restart nextjs_boilerplate --update-env
1 change: 0 additions & 1 deletion hng_boilerplate_nextjs_project
Submodule hng_boilerplate_nextjs_project deleted from 8fc1b9
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"test:ci": "vitest --coverage",
"email:dev": "email dev --dir \"./src/email/templates\"",
"email:build": "email build --dir \"./src/email/templates\"",
"email:start": "email start"
"email:start": "email start",
"typecheck": "tsc --project tsconfig.json --noEmit"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
Expand Down Expand Up @@ -67,6 +68,7 @@
"react-email": "2.1.5",
"react-hook-form": "^7.52.2",
"react-paginate": "^8.2.0",
"react-toastify": "^10.0.5",
"recharts": "^2.12.7",
"sharp": "^0.33.4",
"swiper": "^11.1.9",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions public/images/career/noJob.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/productimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8ec3108

Please sign in to comment.