Skip to content

Commit

Permalink
Update CD..yml
Browse files Browse the repository at this point in the history
  • Loading branch information
code-wolf-byte committed Aug 31, 2024
1 parent 8c8ea36 commit 08d9d21
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/CD..yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,24 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Print VPS details
- uses: actions/checkout@v1
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
env:
VPS_HOST: ${{ secrets.HOST }}
VPS_USERNAME: ${{ secrets.USERNAME }}
VPS_PORT: ${{ secrets.PORT }}
run: |
echo "VPS Host: $VPS_HOST"
echo "VPS Username: $VPS_USERNAME"
echo "VPS Port: $VPS_PORT"
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
with:
source: "."


- name: Executing remote deployment script
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
script: |
echo "Deploying to host: ${{ secrets.HOST }}"
echo "Using username: ${{ secrets.USERNAME }}"
echo "Connecting via port: ${{ secrets.PORT }}"
sudo /root/asu-soda-newsite/CD.sh
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
script: sudo /root/asu-soda-newsite/CD.sh

0 comments on commit 08d9d21

Please sign in to comment.