Skip to content

Commit 62ceee8

Browse files
fix: Release workflow should only trigger on tag creation (#2)
* fix: trigger release only on new tag creation
1 parent 3c34348 commit 62ceee8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
7-
branches:
8-
- main # Only trigger on main branch
6+
- 'v*.*.*' # Only trigger on version tags
97

108
jobs:
119
release:
1210
name: Build and Release
1311
runs-on: ubuntu-latest
1412

15-
# Double-check we're on main branch
16-
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
13+
# Only run if triggered by a tag
14+
if: startsWith(github.ref, 'refs/tags/')
1715

1816
steps:
1917
- name: Checkout code
@@ -55,6 +53,8 @@ jobs:
5553
2. Extract to `World of Warcraft/Interface/AddOns/`
5654
3. Restart WoW or `/reload`
5755
56+
The ZIP contains a `ConsumableManager` folder ready to use.
57+
5858
### Files Included
5959
- Bindings.xml
6060
- ConsumableManager.lua

0 commit comments

Comments
 (0)