From 10319914eca393f1b3c64f91a816a246e43bc43b Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 22 Jan 2026 15:07:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BC=96=E8=AF=91=E8=84=9A=E6=9C=AC):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 28 ++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 29 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..e6356c1 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,28 @@ +on: [push, workflow_dispatch] +jobs: + build: + runs-on: cn + steps: + - name: checkout + uses: actions/checkout@v6 + - name: generate + uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/build:latest + with: + args: -f build.sh -i . -o release/probe + - name: docker goenv + uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest + env: + GIT_SERVER: ${{ secrets.git_server }} + GIT_USER: ${{ secrets.git_user }} + GIT_TOKEN: ${{ secrets.git_token }} + with: + args: bash build.sh + - name: upload to cos + uses: xiaoqidun/gocos@main + with: + secret_id: ${{ secrets.cos_secret_id }} + secret_key: ${{ secrets.cos_secret_key }} + bucket_url: ${{ secrets.cos_bucket_url }} + source_path: release + target_path: product/probe + strip_prefix: release \ No newline at end of file diff --git a/.gitignore b/.gitignore index c8bc328..2c5b46a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .idea/ .vscode/ .devcontainer/ +release/ *.exe *~ \ No newline at end of file