Skip to content

Commit 0de3504

Browse files
author
Robert Sokol
committed
feat: add stat reloads to deploy workflow
1 parent 46e99c9 commit 0de3504

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ jobs:
2525
remote_path: ${{ secrets.DEPLOY_PATH }}
2626
remote_user: ${{ secrets.DEPLOY_USER }}
2727
remote_key: ${{ secrets.DEPLOY_KEY }}
28+
- name: add key to ssh agent
29+
uses: webfactory/ssh-agent@v0.9.0
30+
with:
31+
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
32+
- name: reload stats
33+
run: |
34+
ssh-keyscan -t rsa host.terrashift.net >> ~/.ssh/known_hosts
35+
ssh ${{ secrets.SSH_USER }}@host.terrashift.net "java -jar ${{ secrets.DEPLOY_PATH }}/MinecraftStatsCLI.jar ${{ secrets.DEPLOY_PATH }}/config.json"

0 commit comments

Comments
 (0)