test only publish alpha

This commit is contained in:
alexcrea 2026-01-13 00:15:27 +01:00
parent eff27537ce
commit 90f786bd53
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -125,7 +125,7 @@ jobs:
run: ./gradlew publishAllPublicationsToHangar --stacktrace run: ./gradlew publishAllPublicationsToHangar --stacktrace
- name: Modrinth publish alpha - name: Modrinth publish alpha
if: ${{ github.event_name == 'push' && github.repository_owner == 'alexcrea' && success() && false}} if: ${{ github.event_name == 'push' && github.repository_owner == 'alexcrea' && success() }}
uses: cloudnode-pro/modrinth-publish@v2 uses: cloudnode-pro/modrinth-publish@v2
with: with:
token: ${{ secrets.MODRINTH_TOKEN }} token: ${{ secrets.MODRINTH_TOKEN }}
@ -136,18 +136,19 @@ jobs:
channel: alpha channel: alpha
files: build/libs/${{ env.ONLINE_JAR_NAME }} files: build/libs/${{ env.ONLINE_JAR_NAME }}
- name: Modrinth publish release #- name: Modrinth publish release
if: ${{ github.event_name == 'release' && github.repository_owner == 'alexcrea' && success() && false}} # if: ${{ github.event_name == 'release' && github.repository_owner == 'alexcrea' && success() && false}}
uses: cloudnode-pro/modrinth-publish@v2 # uses: cloudnode-pro/modrinth-publish@v2
with: # with:
token: ${{ secrets.MODRINTH_TOKEN }} # token: ${{ secrets.MODRINTH_TOKEN }}
project: customanvil # project: customanvil
version: ${{ env.ONLINE_JAR_NAME }}${{ github.event.release.prerelease == false && '' || '-pre' }} # version: ${{ env.ONLINE_JAR_NAME }}${{ github.event.release.prerelease == false && '' || '-pre' }}
loaders: '["spigot", "paper", "purpur", "folia"]' # loaders: '["spigot", "paper", "purpur", "folia"]'
game-versions: '["1.18.x", "1.19.x", "1.20.x", "1.21.x"]' # game-versions: '["1.18.x", "1.19.x", "1.20.x", "1.21.x"]'
files: build/libs/${{ env.ONLINE_JAR_NAME }} # files: build/libs/${{ env.ONLINE_JAR_NAME }}
- name: Release - name: Release
if: ${{ false }}
uses: tsickert/discord-webhook@v7.0.0 uses: tsickert/discord-webhook@v7.0.0
with: with:
webhook-url: ${{ secrets.TEST_WEBHOOK_URL }} webhook-url: ${{ secrets.TEST_WEBHOOK_URL }}