-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
ci: upgrade Modrinth gradle extension to v2 deps: upgrade everything for Minecraft 1.18.2
- Loading branch information
Showing
17 changed files
with
144 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"release-type": "simple", | ||
"bump-minor-pre-major": true, | ||
"bump-patch-for-minor-pre-major": true, | ||
"group-pull-request-title-pattern": "chore: release v${version}", | ||
"extra-files": ["gradle.properties"], | ||
"packages": { | ||
".": { | ||
"component": "fabric-example-mod", | ||
"include-component-in-tag": false | ||
}, | ||
"example-submod": { | ||
"component": "example-submod" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Prepares, builds and publishes new releases | ||
|
||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🙌 Prepare release | ||
id: release-please | ||
uses: GoogleCloudPlatform/release-please-action@v3 | ||
with: | ||
command: manifest | ||
config-file: .github/release-please.json | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: ✨ Checkout repository | ||
if: ${{ steps.release-please.outputs.release_created }} | ||
uses: actions/checkout@v2 | ||
|
||
- name: ☕ Set up JDK 17 | ||
if: ${{ steps.release-please.outputs.release_created }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 17 | ||
distribution: adopt | ||
|
||
- name: 🐘 Set up Gradle | ||
if: ${{ steps.release-please.outputs.release_created }} | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: 📢 Publish new release | ||
if: ${{ steps.release-please.outputs.release_created }} | ||
run: ./gradlew publish | ||
env: | ||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
- name: 📦 Upload artifacts | ||
if: ${{ steps.release-please.outputs.release_created }} | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
tag: ${{ steps.release-please.outputs.tag_name }} | ||
file: '**/build/libs/*' | ||
file_glob: true | ||
overwrite: true | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{".":"1.0.0","example-submod":"1.0.0"} |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Mod | ||
mod_name = Another Example | ||
mod_id = modid-sub | ||
## {x-release-please-start-version} | ||
mod_version = 1.0.0 | ||
## {x-release-please-end} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.