Skip to content

Commit 8d554bf

Browse files
authored
Fix release action
1 parent 1593701 commit 8d554bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: CI
1+
name: Build
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- "v*.*.*"
77

88
# Allows it to be ran manually
99
workflow_dispatch:
@@ -40,5 +40,6 @@ jobs:
4040
# Pushing to release
4141
- name: Release
4242
uses: softprops/action-gh-release@v1
43+
if: startsWith(github.ref, 'refs/tags/')
4344
with:
4445
files: dist/*.user.js

0 commit comments

Comments
 (0)