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 17, 2024
1 parent 163c55f commit 8bc3320
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
needs: build-and-release
runs-on: ubuntu-latest
steps:
- name: Accept Server Host Key
run: ssh-keyscan -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
env:
SERVER_IP: ${{ secrets.SERVER_IP }}

- name: Deploy JAR to Server
env:
SERVER_IP: ${{ secrets.SERVER_IP }}
Expand All @@ -66,3 +71,4 @@ jobs:
chmod 600 ~/.ssh/id_rsa
scp target/*.jar $SERVER_USER@$SERVER_IP:$SERVER_PATH
if: ${{ always() }}

0 comments on commit 8bc3320

Please sign in to comment.