deploy job
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user