Update push.yml
This commit is contained in:
parent
1ad3d4511a
commit
622b7edbd2
1 changed files with 1 additions and 8 deletions
9
.github/workflows/push.yml
vendored
9
.github/workflows/push.yml
vendored
|
|
@ -12,14 +12,7 @@ jobs:
|
|||
- 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"
|
||||
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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue