Skip to content

Commit

Permalink
Update pr-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanky-23 authored Aug 9, 2024
1 parent 4b161cd commit 25b5694
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/pr-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: PR Deploy

on:
pull_request:
types: [opened, synchronize, reopened, closed]
Expand All @@ -10,15 +9,12 @@ jobs:
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: uses: hngprojects/pr-deploy@1.0.0

uses: hngprojects/pr-deploy@2.0.1
with:
server_host: ${{ secrets.SERVER_HOST }}
server_username: ${{ secrets.SERVER_USERNAME }}
Expand All @@ -31,7 +27,6 @@ jobs:
host_volume_path: '/var/'
container_volume_path: '/var/'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Print Preview URL
- name: Print Preview Url
run: |
echo "Preview URL: ${{ steps.deploy.outputs.preview-url }}"
echo "Preview Url: ${{ steps.deploy.outputs.preview-url }}"

0 comments on commit 25b5694

Please sign in to comment.