-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
159 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Publish Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
type: choice | ||
description: Release Type | ||
options: | ||
- stable | ||
- beta | ||
- alpha | ||
platform: | ||
type: choice | ||
description: Platform | ||
options: | ||
- both | ||
- fabric | ||
- forge | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
run: echo "JAVA_HOME=$JAVA_HOME_21_X64" >> "$GITHUB_ENV" | ||
|
||
- name: Loom Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/.gradle/loom-cache" | ||
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}" | ||
restore-keys: "${{ runner.os }}-gradle-loom" | ||
|
||
- name: ModDevGradle Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/.gradle/repositories" | ||
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}" | ||
restore-keys: "${{ runner.os }}-gradle-mdg" | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
cache-read-only: true | ||
|
||
- name: Validate Gradle Wrapper Integrity | ||
uses: gradle/wrapper-validation-action@v2 | ||
|
||
- name: Build & Publish | ||
env: | ||
RELEASE_WORKFLOW: true | ||
RELEASE_TYPE: ${{ inputs.releaseType }} | ||
PLATFORM: ${{ inputs.platform }} | ||
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }} | ||
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} | ||
run: ./gradlew lithiumPublish |
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,5 @@ | ||
INFO: | ||
Use Markdown, whatever is written after the dashed line will exactly be what shows up on modrinth and curseforge | ||
|
||
Change logging starts below: | ||
---------- |
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
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