test deployment
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3m4s

This commit is contained in:
Gregor Lohaus
2026-03-09 18:39:05 +01:00
parent edb8300ef7
commit 9332d54cf2
2 changed files with 10 additions and 2 deletions

View File

@@ -18,7 +18,15 @@ jobs:
working-directory: ${{ gitea.workspace }}/Backend
env:
JAVA_HOME: /root/.sdkman/candidates/java/current
run: /root/.sdkman/candidates/gradle/9.4.0/bin/gradle build
run: /root/.sdkman/candidates/gradle/9.4.0/bin/gradle build
- name: deploy
run: |
eval "$(ssh-agent -s)"
ssh-add <(echo "${{ secrets.DEPLOYSSHKEY }}")
scp ${{ gitea.workspace }}/Backend/build/native/nativeCompile/gtransfer anon@162.55.217.172:/home/anon/.local/bin/gtransfernew
ssh anon@162.55.217.172 "chmod +x /home/anon/.local/bin/gtransfernew"
ssh anon@162.55.217.172 "mv /home/anon/.local/bin/gtransfernew /home/anon/.local/bin/gtransfer"
ssh anon@162.55.217.172 "sudo systemctl restart gtransfer"
- name: upload binary
uses: https://gitea.com/actions/gitea-upload-artifact@v4
with: