Skip to content

Commit

Permalink
Merge pull request #13 from refinedmods/release/0.1.0
Browse files Browse the repository at this point in the history
Release v0.1.0
  • Loading branch information
raoulvdberge authored Mar 19, 2023
2 parents b91de12 + 747778e commit 66782b2
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-release-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ jobs:
with:
mutation-testing: false
project-name: 'Refined Architect'
announce: false
7 changes: 7 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
project-name:
required: true
type: string
announce:
required: false
type: boolean
default: true
jobs:
extract-version-number:
name: Extract version number
Expand Down Expand Up @@ -126,6 +130,7 @@ jobs:
name: Announce to Discord
runs-on: ubuntu-latest
needs: [ deploy-github-releases, extract-version-number ]
if: ${{ inputs.announce == true }}
env:
RELEASE_VERSION: ${{ needs.extract-version-number.outputs.version }}
RELEASE_URL: ${{ needs.deploy-github-releases.outputs.release-url }}
Expand All @@ -142,6 +147,7 @@ jobs:
name: Announce to Twitter
runs-on: ubuntu-latest
needs: [ deploy-github-releases, extract-version-number ]
if: ${{ inputs.announce == true }}
steps:
- name: Announce to Twitter
uses: ethomson/send-tweet-action@v1
Expand All @@ -156,6 +162,7 @@ jobs:
name: Announce to Mastodon
runs-on: ubuntu-latest
needs: [ deploy-github-releases, extract-version-number ]
if: ${{ inputs.announce == true }}
steps:
- name: Announce to Mastodon
uses: rzr/fediverse-action@master
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.0] - 2023-03-19

### Changed

- Publishing to Maven is now opt-in with `enablePublishing`.
- Announcing new releases is now opt-in.

## [0.0.2] - 2023-03-19

### Fixed
Expand All @@ -21,7 +28,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Fabric and Forge helpers.
- CI workflows.

[Unreleased]: https://github.com/refinedmods/refinedarchitect/compare/v0.0.2...HEAD
[Unreleased]: https://github.com/refinedmods/refinedarchitect/compare/v0.1.0...HEAD

[0.1.0]: https://github.com/refinedmods/refinedarchitect/compare/v0.0.2...v0.1.0

[0.0.2]: https://github.com/refinedmods/refinedarchitect/compare/v0.0.1...v0.0.2

Expand Down
58 changes: 31 additions & 27 deletions helper.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,33 +71,6 @@ subprojects {
}
}

apply plugin: 'maven-publish'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/" + System.getenv("GITHUB_REPOSITORY"))
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "CreeperHost"
url = uri("https://maven.creeperhost.net/release")
credentials {
username = System.getenv("CREEPERHOST_MAVEN_USERNAME")
password = System.getenv("CREEPERHOST_MAVEN_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

ext {
minecraftVersion = "1.19.3"
// https://www.curseforge.com/minecraft/mc-mods/jei/files
Expand All @@ -124,6 +97,37 @@ subprojects {
ext.javadocEnabled = true
}

apply plugin: 'maven-publish'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/" + System.getenv("GITHUB_REPOSITORY"))
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "CreeperHost"
url = uri("https://maven.creeperhost.net/release")
credentials {
username = System.getenv("CREEPERHOST_MAVEN_USERNAME")
password = System.getenv("CREEPERHOST_MAVEN_TOKEN")
}
}
}
}
ext.enablePublishing = {
publishing {
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
}

ext.commonProject = {
apply plugin: org.spongepowered.gradle.vanilla.VanillaGradle
minecraft {
Expand Down

0 comments on commit 66782b2

Please sign in to comment.