From dcf6bb81539154e47228faacf5f02b62320426d9 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 12 Jun 2026 07:30:23 +0000 Subject: [PATCH 1/3] chore: add deploy workflow --- .gitea/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..68bd37b --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,10 @@ +name: Deploy +on: + push: + branches: [ production ] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy on chats + run: curl -X POST http://192.168.1.80:9998 -H Content-Type: application/json -d ref:refs/heads/production From 7093edf00405cbf50777a7e4a122ae0af7d51014 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 12 Jun 2026 07:30:54 +0000 Subject: [PATCH 2/3] fix: correct workflow format --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 68bd37b..8170665 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,4 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy on chats - run: curl -X POST http://192.168.1.80:9998 -H Content-Type: application/json -d ref:refs/heads/production + run: "curl -sk -X POST http://192.168.1.80:9998 -H \"Content-Type: application/json\" -d "ref":"refs/heads/production"" From ec4377e2eef38e5b459e646ebce84ba104fd63dd Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 12 Jun 2026 07:30:54 +0000 Subject: [PATCH 3/3] fix: correct workflow format --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8170665..6843e50 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,4 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy on chats - run: "curl -sk -X POST http://192.168.1.80:9998 -H \"Content-Type: application/json\" -d "ref":"refs/heads/production"" + run: "curl -sk -X POST http://192.168.1.80:9998 -H \"Content-Type: application/json\" -d "repository":{"name":"min-chat"}"