Skip to content

Commit adcce90

Browse files
committed
ci: also run compile on main push, only create Release on tag push
1 parent bfcb52b commit adcce90

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Build & Release
22

33
on:
44
push:
5+
branches: [ main ]
56
tags: [ 'v*' ]
67

78
jobs:
@@ -24,6 +25,7 @@ jobs:
2425
run: mvn -B clean package --file pom.xml -DskipTests
2526

2627
- name: Create Release
28+
if: startsWith(github.ref, 'refs/tags/')
2729
uses: softprops/action-gh-release@v2
2830
with:
2931
tag_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)