Skip to content

Commit

Permalink
fix: Turning back to running CF all time in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
P3pp3rF1y committed Sep 16, 2024
1 parent 2ebfecf commit c707661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,8 @@ jobs:
min-versions-to-keep: 50
- name: Publish to CurseForge
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
run: |
BRANCH_NAME=${GITHUB_REF##*/}
if [[ "$BRANCH_NAME" =~ ^[0-9]+\.[0-9]+\.([0-9]+|x)$ ]]; then
./gradlew curseforge
else
echo "Branch name does not match the pattern: $BRANCH_NAME. Skipping CurseForge upload."
exit 0
fi
CURSEFORGE_TOkEN: ${{ secrets.CURSEFORGE_TOKEN }}
run: ./gradlew curseforge
- name: Code Quality
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ task generateChangelog {
task curseforge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) {
dependsOn 'generateChangelog'

debugMode = true
apiToken = System.getenv("CURSEFORGE_TOkEN")
def mainFile = upload(project.curseforge_id, file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
mainFile.changelogType = 'markdown'
Expand Down

0 comments on commit c707661

Please sign in to comment.