Update push.yml

This commit is contained in:
MattTheTekie 2024-03-09 17:04:33 -05:00 committed by GitHub
commit 51f5f9047c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,23 +11,9 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Pushing Files
run: |
echo Pushing Files...
- name: remote ssh command
uses: fifsky/ssh-action@master
with:
host: 194.62.248.193
port: 6666
args: -tt
user: demon
pass : ${{ secrets.PASS }}
command: |
rm -rf /var/www/venith && cd /var/www/ && git clone https://github.com/VenithNET/VENITH.NET/ && mv VENITH.NET venith
- name: Deploy
run: |
TEMP=$(mktemp)
echo "${{ secrets.SSH_PRIVATE_KEY }}" > $TEMP
ssh -o 'StrictHostKeyChecking no' -i $TEMP mattthetekie@venith.net 'bash -s' < scripts/deploy.sh
ssh -o 'StrictHostKeyChecking no' -i $TEMP mattthetekie@venith.net 'bash -s' < rm -rf /var/www/venith && cd /var/www/ && git clone https://github.com/VenithNET/VENITH.NET/ && mv VENITH.NET venith