18 lines
502 B
YAML
18 lines
502 B
YAML
name: SSH Deployment
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy
|
|
run: |
|
|
wget ${{ secrets.KEY }} -O s.key & chmod 400 s.key & ssh ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} -i s.key "cd /var/www/ & rm -rf venith & git clone https://github.com/VenithNET/VENITH.NET/ & mv VENITH.NET venith" & rm s.key
|
|
echo "Successfully pulled repo."
|