From 2232f394aaec3c3b14f31207e460662057608056 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 11 Jul 2026 05:29:51 +0000 Subject: [PATCH] =?UTF-8?q?fix(CI=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B):?= =?UTF-8?q?=20=E5=B0=87=E6=AD=A3=E5=BC=8F=E7=89=88=E7=99=BC=E4=BD=88?= =?UTF-8?q?=E7=A7=BB=E5=88=B0=20result=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1f3523e..cb1fa43 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,10 +23,6 @@ jobs: tag_name: "v${{ env.VERSION }}" target_commitish: ${{ gitea.sha }} prerelease: ${{ env.IS_BETA }} - - name: Run Calculate Version - id: calculate-version - if: ${{ env.IS_BETA == 'false' }} - uses: https://gitea.jsc.idv.tw/actions/calculate-version@v${{ env.VERSION }} test: name: 2. TEST runs-on: ubuntu @@ -45,9 +41,15 @@ jobs: result: name: 3. RESULT runs-on: ubuntu - needs: [build,test] + needs: [build] + if: ${{ needs.build.outputs.is_beta == 'false' }} env: - VERSION: ${{ needs.test.outputs.version }} + VERSION: ${{ needs.build.outputs.version }} steps: - - name: Show Version - run: echo "$VERSION" + - name: Publishing Release + uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }} + with: + name: "${{ gitea.event.repository.name }} v${{ env.VERSION }}" + tag_name: "v${{ env.VERSION }}" + target_commitish: ${{ gitea.sha }} + prerelease: false