Skip to content

Commit

Permalink
Merge pull request #52 from refinedmods/release/0.6.0
Browse files Browse the repository at this point in the history
Release v0.6.0
  • Loading branch information
raoulvdberge authored Jul 5, 2023
2 parents da23911 + 4b4b493 commit f72c047
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
required: false
type: boolean
default: false
modrinth:
required: false
type: boolean
default: false
jobs:
extract-version-number:
name: Extract version number
Expand Down Expand Up @@ -147,6 +151,23 @@ jobs:
- name: Deploy to CurseForge
run: ./gradlew publishCurseForge

deploy-modrinth:
name: Deploy to Modrinth
runs-on: ubuntu-latest
needs: [ build, extract-version-number, extract-changelog ]
if: ${{ inputs.modrinth == true }}
env:
RELEASE_VERSION: ${{ needs.extract-version-number.outputs.version }}
RELEASE_CHANGELOG: ${{ needs.extract-changelog.outputs.changelog }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Deploy to Modrinth
run: ./gradlew modrinth

announce-discord:
name: Announce to Discord
runs-on: ubuntu-latest
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.6.0] - 2023-07-05

### Added

- Modrinth upload support.

## [0.5.5] - 2023-07-04

### Fixed
Expand Down Expand Up @@ -108,7 +114,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Gradle helpers for Fabric and Forge projects.
- CI workflows.

[Unreleased]: https://github.com/refinedmods/refinedarchitect/compare/v0.5.5...HEAD
[Unreleased]: https://github.com/refinedmods/refinedarchitect/compare/v0.6.0...HEAD

[0.6.0]: https://github.com/refinedmods/refinedarchitect/compare/v0.5.5...v0.6.0

[0.5.5]: https://github.com/refinedmods/refinedarchitect/compare/v0.5.4...v0.5.5

Expand Down
16 changes: 15 additions & 1 deletion helper.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ buildscript {
classpath 'net.minecraftforge.gradle:ForgeGradle:[6.0,6.2)'
classpath 'fabric-loom:fabric-loom.gradle.plugin:1.2-SNAPSHOT'
classpath 'net.darkhax.curseforgegradle:CurseForgeGradle:1.1.15'
classpath 'com.modrinth.minotaur:Minotaur:2.+'
}
}

Expand Down Expand Up @@ -142,7 +143,20 @@ allprojects {
mainFile.releaseType = project.version.toString().contains('beta') ? 'beta' : (project.version.toString().contains('alpha') ? 'alpha' : 'release')
mainFile.changelog = System.getenv("RELEASE_CHANGELOG")
mainFile.changelogType = 'markdown'
mainFile.displayName = 'v' + System.getenv('RELEASE_VERSION')
mainFile.displayName = 'v' + project.version
}
}

ext.enableModrinth = { String modrinthProjectId ->
apply plugin: com.modrinth.minotaur.Minotaur
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = modrinthProjectId
uploadFile = jar
versionType = project.version.toString().contains('beta') ? 'beta' : (project.version.toString().contains('alpha') ? 'alpha' : 'release')
versionNumber = project.version
versionName = 'v' + project.version
changelog = System.getenv("RELEASE_CHANGELOG")
}
}

Expand Down

0 comments on commit f72c047

Please sign in to comment.