From ed719fd44ebe5fb6d45354416860006e695a061c Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Thu, 2 Jan 2025 11:03:40 +0800 Subject: [PATCH] ci: perf workflows --- .github/workflows/build-dev-image.yaml | 2 ++ .github/workflows/build-release-artifacts.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build-dev-image.yaml b/.github/workflows/build-dev-image.yaml index 2784e40d..062a72d0 100644 --- a/.github/workflows/build-dev-image.yaml +++ b/.github/workflows/build-dev-image.yaml @@ -7,6 +7,8 @@ on: jobs: build-dev-image: runs-on: ubuntu-latest + # 如果是tag则跳过 + if: ${{ !startsWith(github.ref, 'refs/tags/') }} steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/build-release-artifacts.yaml b/.github/workflows/build-release-artifacts.yaml index 2a1d2fc6..02ba8542 100644 --- a/.github/workflows/build-release-artifacts.yaml +++ b/.github/workflows/build-release-artifacts.yaml @@ -52,3 +52,11 @@ jobs: with: name: langbot-${{ steps.check_version.outputs.version }}-all path: . + + - name: Upload To Release + env: + GH_TOKEN: ${{ secrets.RELEASE_UPLOAD_GITHUB_TOKEN }} + run: | + # 本目录下所有文件打包成zip + zip -r langbot-${{ steps.check_version.outputs.version }}-all.zip . + gh release upload ${{ github.event.release.tag_name }} langbot-${{ steps.check_version.outputs.version }}-all.zip