Skip to content

Commit

Permalink
chore: update droplet secret naming for scp action
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-geddy committed Mar 18, 2024
1 parent 9effe52 commit 509320d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/delpoy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ jobs:
username: ${{secrets.DROPLET_USER}}
key: ${{ secrets.DROPLET_PRIVATE_KEY }}
script: |
rm -rf /var/www/domains/invoice.reactivelabs.cloud/public_html
rm -rf /var/www/domains/invoice.reactivelabs.cloud/public_html/*
- name: Deploy files to production
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
host: ${{ secrets.DROPLET_HOST }}
username: ${{ secrets.DROPLET_USER }}
key: ${{ secrets.DROPLET_PRIVATE_KEY }}
source: "./build/*"
strip_components: 1
target: "/var/www/domains/invoice.reactivelabs.cloud/public_html"
Expand Down

0 comments on commit 509320d

Please sign in to comment.