From 9b131ae5337701b7085d805e830f572a9894d181 Mon Sep 17 00:00:00 2001 From: ReTeamSpeak Date: Wed, 13 May 2026 20:52:29 +0900 Subject: [PATCH] fix: run CI only for tag builds --- .github/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ff3daf..0e9599e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,8 @@ name: CI/CD on: push: - branches: [ main ] - pull_request: - branches: [ main ] - release: - types: [ created ] + tags: + - '*' env: CARGO_TERM_COLOR: always @@ -171,7 +168,7 @@ jobs: release: name: Release needs: build-desktop - if: github.event_name == 'release' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest permissions: contents: write @@ -186,7 +183,7 @@ jobs: uses: softprops/action-gh-release@v3 with: files: artifacts/**/* - draft: true + tag_name: ${{ github.ref_name }} generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}