diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc8a937..17a70d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,9 @@ "MODRINTH_KEY": "${{ secrets.MODRINTH_KEY }}" } }, + { + "run": "git push && git push --tags" + }, { "name": "Publish", "run": "./gradlew publish modrinth curseforge", @@ -71,9 +74,6 @@ "CURSEFORGE_KEY": "${{ secrets.CURSEFORGE_KEY }}", "MODRINTH_KEY": "${{ secrets.MODRINTH_KEY }}" } - }, - { - "run": "git push && git push --tags" } ] } diff --git a/build.gradle b/build.gradle index 365b016..f899878 100644 --- a/build.gradle +++ b/build.gradle @@ -30,15 +30,15 @@ managedVersioning { step { setupGitUser() } + readOnly.set false gradlew 'tagRelease' gradlew 'Build', 'build' - readOnly.set false - gradlew 'Publish', 'publish', 'modrinth', 'curseforge' - mavenRelease('github') - modPublishing() step { run.set 'git push && git push --tags' } + gradlew 'Publish', 'publish', 'modrinth', 'curseforge' + mavenRelease('github') + modPublishing() } } build_pr {