VELTRON.NET/.github/workflows/push.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 15: mapping key "name" already defined at line 1 line 17: mapping key "on" already defined at line 3 line 22: mapping key "jobs" already defined at line 7
2024-03-09 17:11:41 -05:00

40 lines
880 B
YAML

name: Push files over SCP
on:
push:
workflow_dispatch:
jobs:
download_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
name: SSH Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy
run: |
cd ${{ github.workspace }}
ssh-keyscan -t rsa ${{ secrets.IP }} >> ~/.ssh/known_hosts
ssh ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} "cd /var/www/ & rm -rf venith & git clone https://github.com/VenithNET/VENITH.NET/ & mv VENITH.NET venith"
echo "Successfully pulled repo."