Skip to content

Commit 854d207

Browse files
committed
Don't publish beta and release on the same commit
1 parent 2fd5eba commit 854d207

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
if-no-files-found: error
6565
path: loader-*/build/libs/*
6666
- name: 'Deploy to CurseForge'
67-
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/master')
67+
if: startsWith(github.ref, 'refs/tags/') || (!startsWith(github.event.head_commit.message, 'Bump mod version') && startsWith(github.ref, 'refs/heads/master'))
6868
env:
6969
CURSEFORGE_KEY_SECRET: ${{ secrets.CURSEFORGE_KEY_SECRET }}
7070
run: ./gradlew publishCurseForge
7171
- name: 'Deploy to Modrinth'
72-
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/master')
72+
if: startsWith(github.ref, 'refs/tags/') || (!startsWith(github.event.head_commit.message, 'Bump mod version') && startsWith(github.ref, 'refs/heads/master'))
7373
env:
7474
MODRINTH_KEY_SECRET: ${{ secrets.MODRINTH_KEY_SECRET }}
7575
run: ./gradlew modrinth

0 commit comments

Comments
 (0)