Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzybol authored Mar 18, 2024
1 parent 23f382d commit 3517393
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ jobs:
SERVER_IP: ${{ secrets.SERVER_IP }}
SERVER_USER: ${{ secrets.SERVER_USER }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: minecraft-plugin

- name: Deploy JAR to Server
env:
Expand All @@ -78,5 +83,7 @@ jobs:
SERVER_PATH: ${{ secrets.SERVER_PATH }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
scp target/*.jar $SERVER_USER@$SERVER_IP:$SERVER_PATH
echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
scp minecraft-plugin/*.jar $SERVER_USER@$SERVER_IP:$SERVER_PATH
if: ${{ always() }}

0 comments on commit 3517393

Please sign in to comment.