mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-02 02:11:59 +02:00
Prevent publishing pres to CF/MN (#48)
This commit is contained in:
parent
bd16cd8b5c
commit
031b79f439
5
.github/workflows/release-tags.yml
vendored
5
.github/workflows/release-tags.yml
vendored
@ -28,6 +28,7 @@ jobs:
|
||||
VERSION: ${{ github.ref_name }}
|
||||
RELEASE_VERSION: ${{ github.ref_name }}
|
||||
SNAPSHOT: ${{ endsWith(github.ref_name, '-snapshot') || contains(github.event.head_commit.message, '[snapshot]') }}
|
||||
PRERELEASE: ${{ endsWith(github.ref_name, '-pre') }}
|
||||
MAVEN_PUBLISHING_URL: ${{ vars.MAVEN_PUBLISHING_URL || 'https://nexus.gtnewhorizons.com/repository/releases/' }}
|
||||
steps:
|
||||
- name: Checkout mod repo
|
||||
@ -101,11 +102,11 @@ jobs:
|
||||
continue-on-error: true
|
||||
env:
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
if: ${{ env.SNAPSHOT != 'true' }}
|
||||
if: ${{ env.SNAPSHOT != 'true' && env.PRERELEASE != 'true' }}
|
||||
|
||||
- name: Publish to Curseforge
|
||||
run: ./gradlew --build-cache --info --stacktrace -PmavenPublishUrl='${{ env.MAVEN_PUBLISHING_URL }}' assemble publish -x test
|
||||
continue-on-error: true
|
||||
env:
|
||||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||
if: ${{ env.SNAPSHOT != 'true' }}
|
||||
if: ${{ env.SNAPSHOT != 'true' && env.PRERELEASE != 'true' }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user