Skip to content

Commit bdf948d

Browse files
authored
Update publish-snapshot to only work on main branch
1 parent 5f2d234 commit bdf948d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Publish snapshot to https://maven.minecrafttas.com/snapshots
22
name: Publish Snapshot
33

4-
on: [push]
4+
on:
5+
push:
6+
branches:
7+
- main
8+
tags-ignore:
9+
- '**'
510

611
jobs:
712
build:
@@ -21,3 +26,4 @@ jobs:
2126
gradle-version: 8.13
2227
- name: Publish
2328
run: gradle publishAllPublicationsToMinecrafttasSnapshotsRepository -PminecrafttasSnapshotsUsername=${{ secrets.MAVEN_NAME }} -PminecrafttasSnapshotsPassword=${{ secrets.MAVEN_SECRET }}
29+

0 commit comments

Comments
 (0)