Skip to content

Commit 4bd1617

Browse files
committed
chore: run actions only on tags
1 parent 7d75bb5 commit 4bd1617

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
name: Build and Release
22

33
on:
4-
release:
5-
types:
6-
- published
7-
- created
8-
- released
94
push:
10-
branches:
11-
- master
12-
- v*
13-
pull_request:
14-
branches:
15-
- master
16-
- v*
5+
tags:
6+
- '*'
177

188
jobs:
199
build:
@@ -49,7 +39,6 @@ jobs:
4939
5040
- name: Upload to GitHub release
5141
uses: svenstaro/upload-release-action@v2
52-
if: github.event_name == 'release'
5342
with:
5443
repo_token: ${{ secrets.GITHUB_TOKEN }}
5544
file: ./${{ steps.info.outputs.RELEASE_NAME }}.zip

0 commit comments

Comments
 (0)