修改自动化脚本,协议实时生成

This commit is contained in:
hahwu 2026-01-27 17:20:43 +08:00
parent 6fbfcb60eb
commit 3dcfcda708
5 changed files with 27 additions and 0 deletions

View File

@ -17,10 +17,17 @@
delegate_to: localhost
run_once: true
register: git_result
- name: change docs git branch
shell: cd /data/docs && git checkout online && git pull
delegate_to: localhost
run_once: true
- name: protoc protobuff
shell: cd /data/docs && protoc --go_out=/codes/pet_home_server/src/server/msg ./proto/Gameapi.proto
delegate_to: localhost
run_once: true
- name: sh pack.sh
shell: sh /data/devops/pack.sh
delegate_to: localhost

View File

@ -17,10 +17,17 @@
delegate_to: localhost
run_once: true
register: git_result
- name: change docs git branch
shell: cd /data/docs && git checkout online && git pull
delegate_to: localhost
run_once: true
- name: protoc protobuff
shell: cd /data/docs && protoc --go_out=/codes/pet_home_server/src/server/msg ./proto/Gameapi.proto
delegate_to: localhost
run_once: true
- name: sh pack.sh
shell: sh /data/devops/pack.sh
delegate_to: localhost

View File

@ -20,6 +20,10 @@
shell: cd /data/docs && git checkout sdk && git pull
delegate_to: localhost
- name: protoc protobuff
shell: cd /data/docs && protoc --go_out=/codes/pet_home_server/src/server/msg ./proto/Gameapi.proto
delegate_to: localhost
- name: sh pack.sh
shell: sh /data/devops/pack.sh
delegate_to: localhost

View File

@ -20,6 +20,10 @@
shell: cd /data/docs && git checkout sdk && git pull
delegate_to: localhost
- name: protoc protobuff
shell: cd /data/docs && protoc --go_out=/codes/pet_home_server/src/server/msg ./proto/Gameapi.proto
delegate_to: localhost
- name: sh pack.sh
shell: sh /data/devops/pack.sh
delegate_to: localhost

View File

@ -21,6 +21,11 @@
- name: change docs git branch
shell: cd /data/docs && git checkout main && git pull
delegate_to: localhost
- name: protoc protobuff
shell: cd /data/docs && protoc --go_out=/codes/pet_home_server/src/server/msg ./proto/Gameapi.proto
delegate_to: localhost
- name: sh pack.sh
shell: sh /data/devops/pack.sh
delegate_to: localhost