Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xixiIBN5100 authored Sep 18, 2024
1 parent c5b2d4a commit ebbaa30
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
steps:
- name: Check if forked
if: github.event.repository.fork == true
run: echo "This action is running on a forked repository and will not deploy." && exit 0


- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -48,7 +46,7 @@ jobs:
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_TOKEN_DEV }}
SOURCE: "dist/"
TARGET: "/home/github-action-xsx/var/www/dist"
TARGET: "/var/www/dist"
ARGS: "-avzr --delete"
REMOTE_HOST: ${{ secrets.REMOTE_HOST_DEV }}
REMOTE_USER: ${{ secrets.REMOTE_USER_DEV }}

0 comments on commit ebbaa30

Please sign in to comment.