Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pr-deploy.yml #899

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/pr-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Preview Deploy
on:
pull_request:
types: [opened, synchronize, reopened, closed]

jobs:
deploy:
environment:
name: preview
url: ${{ steps.deploy.outputs.preview-url }}
runs-on: ubuntu-latest
steps:
- name: Checkout to branch
uses: actions/checkout@v4
- id: deploy
name: Pull Request Deploy
uses: hngprojects/pr-deploy@main
with:
server_host: ${{ secrets.SERVER_HOST }}
server_username: ${{ secrets.SERVER_USERNAME }}
server_password: ${{ secrets.SERVER_PASSWORD }}
server_port: ${{ secrets.SERVER_PORT }}
context: '.'
dockerfile: 'docker/development/Dockerfile'
exposed_port: '3000'
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions src/app/(landing-routes)/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Hero from "~/components/layouts/homepage/Hero";
import HowItWorks from "~/components/layouts/homepage/HowItWorks";
import PerfectFit from "~/components/layouts/homepage/PerfectFit";
import Testimonials from "~/components/layouts/homepage/Testimonials";
import UserSection from "~/components/layouts/homepage/UserSection";

export default function Home() {
Expand All @@ -10,7 +9,6 @@ export default function Home() {
<Hero />
<UserSection />
<HowItWorks />
<Testimonials />
<PerfectFit />
</>
);
Expand Down
Loading