2 Commits

Author SHA1 Message Date
Gregor Lohaus
c4dc527110 Merge branch 'workflow'
All checks were successful
Deploy / Explore-Gitea-Actions (push) Successful in 4m19s
2026-03-09 19:18:54 +01:00
Gregor Lohaus
268d234f98 deploy job 2026-03-09 19:18:38 +01:00

View File

@@ -1,6 +1,9 @@
name: Gitea Actions Demo name: Deploy
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} deployed latest version 🚀
on: [push] on:
push:
branches:
- "main"
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
@@ -28,10 +31,11 @@ jobs:
ssh-keyscan 162.55.217.172 >> ~/.ssh/known_hosts ssh-keyscan 162.55.217.172 >> ~/.ssh/known_hosts
scp ${{ gitea.workspace }}/Backend/build/native/nativeCompile/gtransfer anon@162.55.217.172:/home/anon/.local/bin/gtransfernew 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 "chmod +x /home/anon/.local/bin/gtransfernew"
ssh anon@162.55.217.172 "mv /home/anon/.local/bin/gtransfer /home/anon/.local/bin/gtransferback"
ssh anon@162.55.217.172 "mv /home/anon/.local/bin/gtransfernew /home/anon/.local/bin/gtransfer" 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" ssh anon@162.55.217.172 "sudo systemctl restart gtransfer"
- name: upload binary # - name: upload binary
uses: https://gitea.com/actions/gitea-upload-artifact@v4 # uses: https://gitea.com/actions/gitea-upload-artifact@v4
with: # with:
name: gtransfer # name: gtransfer
path: ${{ gitea.workspace }}/Backend/build/native/nativeCompile/gtransfer # path: ${{ gitea.workspace }}/Backend/build/native/nativeCompile/gtransfer