Skip to content

Commit 502d500

Browse files
committed
Updated the workflow to automate the build process when pushing code to the main branch or pushing a new tag
1 parent bcc37d5 commit 502d500

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Publish Package
22

33
on:
44
push:
5+
branches:
6+
- main # Triggers on pushes to the main branch
57
tags:
6-
- 'v*.*.*' # Triggers the workflow when a tag starting with 'v' is pushed (e.g., v1.0.0)
8+
- 'v*.*.*' # Triggers on tag pushes matching the pattern
79

810
jobs:
911
build-and-publish:

0 commit comments

Comments
 (0)