From d673d9abd48254fa962db9cfadec672196182484 Mon Sep 17 00:00:00 2001 From: MattTheTekie <94870997+MattTheTekie@users.noreply.github.com> Date: Sat, 30 Dec 2023 16:19:48 -0500 Subject: [PATCH] Update push.yml --- .github/workflows/push.yml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4175c63..cc9626d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,4 +1,4 @@ -name: Push over SCP +name: Push files over SCP on: schedule: @@ -6,18 +6,27 @@ on: workflow_dispatch: jobs: - build: + download_and_push: runs-on: ubuntu-latest steps: - - name: copy file via ssh key + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Downloading Files + run: | + echo Downloading Files... + mkdir /tmp/VENITH + cd /tmp/VENITH + git clone https://github.com/VenithNET/VENITH.NET + - name: Push Files via SCP uses: appleboy/scp-action@master with: - host: ${{ secrets.DEST_IP }} - username: mattthetekie - password : ${{ secrets.PASS }} - proxy_host: ${{ secrets.IP }} - proxy_username: mattthetekie - proxy_password: ${{ secrets.PASS }} - source: "$GITHUB_WORKSPACE" - target: "/var/www/2/" + host: ${{ secrets.DEST_IP }} + username: mattthetekie + key: ${{ secrets.SSH_PRIVATE_KEY }} + source: "/tmp/VENITH/VENITH.NET" + target: "/var/www/2/" + proxy_host: ${{ secrets.IP }} + proxy_username: mattthetekie + proxy_password: ${{ secrets.PASS }}