VELTRON.NET/.github/workflows/push.yml
2023-12-30 16:19:48 -05:00

32 lines
828 B
YAML

name: Push files over SCP
on:
schedule:
- cron: "0 */3 * * *"
workflow_dispatch:
jobs:
download_and_push:
runs-on: ubuntu-latest
steps:
- 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
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 }}