This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
93 additions
and
112 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 |
---|---|---|
@@ -1,74 +1,9 @@ | ||
|
||
name: build | ||
on: | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
version_type: | ||
description: "The type of this version. e.g alpha" | ||
type: choice | ||
default: beta | ||
options: | ||
- release | ||
- beta | ||
- alpha | ||
required: false | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: | | ||
!contains(github.event.head_commit.message, '[ci skip]') | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4.1.1 | ||
- name: validate gradle wrapper | ||
uses: gradle/wrapper-validation-action@v2.1.1 | ||
- name: setup jdk 17 | ||
uses: actions/setup-java@v4.1.0 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: gradle | ||
- name: make gradle wrapper executable | ||
run: chmod +x ./gradlew | ||
- name: build and publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
./gradlew build publish | ||
- name: get version #https://stackoverflow.com/questions/71089787/how-to-get-version-name-from-android-gradle-file-in-github-actions | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
run: | | ||
echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_ENV | ||
echo "VERSION_PLAIN=$(${{github.workspace}}/gradlew -q printVersion)" >> $GITHUB_ENV | ||
- name: publish release | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: Kir-Antipov/mc-publish@v3.3.0 | ||
with: | ||
version-type: ${{ inputs.version_type }} | ||
changelog-file: CHANGELOG.md | ||
name: ${{ env.VERSION_INFORMATION }} | ||
version: ${{ env.VERSION_PLAIN }} | ||
|
||
game-versions: | | ||
>=1.18 <=1.20.4 | ||
loaders: | | ||
fabric | ||
java: | | ||
17 | ||
github-tag: ${{ env.VERSION_PLAIN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-commitish: ${{ github.sha }} | ||
github-prerelease: false | ||
|
||
modrinth-id: 6N4iGk9g | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
modrinth-featured: true | ||
modrinth-unfeature-mode: subset | ||
modrinth-dependencies: | | ||
dark-matter(embedded) | ||
uses: constellation-mc/actions/.github/workflows/gradle-build.yml@main | ||
with: | ||
java: 17 |
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,23 @@ | ||
|
||
name: publish | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_type: | ||
description: "The type of this version. e.g alpha" | ||
type: choice | ||
default: BETA | ||
options: | ||
- STABLE | ||
- BETA | ||
- ALPHA | ||
- NONE | ||
required: false | ||
|
||
jobs: | ||
publish: | ||
uses: constellation-mc/actions/.github/workflows/mc-publish.yml@main | ||
with: | ||
java: 17 | ||
version_type: ${{ inputs.version_type }} | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[versions] | ||
dark-matter = "4.1.1-1.20.1-build.90" | ||
|
||
[libraries] | ||
fabric-loader = { group = "net.fabricmc", name = "fabric-loader", version = "0.16.0" } | ||
|
||
dark-matter-base = { group = "me.melontini", name = "dark-matter-base", version.ref = "dark-matter" } | ||
dark-matter-instrumentation = { group = "me.melontini", name = "dark-matter-instrumentation", version.ref = "dark-matter" } | ||
|
||
[plugins] | ||
fabric-loom = { id = "fabric-loom", version = "1.7.2" } | ||
spotless = { id = "com.diffplug.spotless", version = "6.25.0" } | ||
modmuss50-publish = { id = "me.modmuss50.mod-publish-plugin", version = "0.6.2" } |