fix: run CI only for tag builds

This commit is contained in:
ReTeamSpeak
2026-05-13 20:52:29 +09:00
parent c8caf83355
commit 9b131ae533
+4 -7
View File
@@ -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 }}