13 Commits
Author SHA1 Message Date
big-duckie a1759e3b22 Updated to 1.21.1.
release / build (21) (push) Successful in 2m20s
2025-04-01 16:50:32 -06:00
big-duckie f3ce6defad Change the versioning system to use tags for actual release versioning. Manually built will always be labeled as dev version.
release / build (21) (push) Successful in 11m42s
2025-01-01 02:42:54 -07:00
big-duckie 4fcb113b2f Update .gitea/workflows/release.yml 2025-01-01 02:20:43 -07:00
big-duckie 378484dacb Update .gitea/workflows/release.yml
release / build (21) (push) Has been cancelled
Attempt to use GITHUB_TOKENS.
2024-12-31 18:35:44 -07:00
big-duckie 76f7cefa58 Update .gitea/workflows/release.yml 2024-12-31 17:27:25 -07:00
big-duckie c5f0e3ff97 Rework actions to publish to Maven and Releases. Update README.md to reference Gitea maven.
release / build (21) (push) Failing after 11m5s
2024-12-31 16:26:23 -07:00
big-duckie 26bbd0417f Fix broken build.yml because GHES problems.
build / build (21) (push) Successful in 11m41s
2024-12-04 13:12:22 -07:00
big-duckie e77bdcb061 Remove maven publish on commit.
build / build (21) (push) Failing after 10m15s
2024-11-30 15:11:01 -07:00
big-duckie dabe9701ea Fix incorrect environment variable for Maven publish.
build / build (21) (push) Failing after 10m46s
2024-11-29 20:59:25 -07:00
big-duckie 66c631efb0 Update maven settings to use Gitea. Added workflow publish.
build / build (21) (push) Failing after 11m19s
2024-11-29 18:54:48 -07:00
big-duckie a9c9c06fab Marked mod as library.
build / build (21) (push) Failing after 15m45s
2024-11-29 12:47:37 -07:00
big-duckie fe3d5e6031 Add LICENSE and README.md
build / build (21) (push) Waiting to run
2024-11-29 11:28:59 -07:00
big-duckie be5245dcfb Commit of all current code. 2024-11-29 11:28:59 -07:00
8 changed files with 73 additions and 53 deletions
+43
View File
@@ -0,0 +1,43 @@
name: release
on:
push:
tags:
- "*"
env:
VERSION: "${{github.ref_name}}"
jobs:
build:
strategy:
matrix:
java: [
21, # Current Java LTS
]
runs-on: ubuntu-22.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "temurin"
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: publish maven
continue-on-error: true
env:
MAVEN_TOKEN: "${{secrets.MAVEN_TOKEN}}"
run: ./gradlew publish
- name: publish release
uses: akkuman/gitea-release-action@v1
with:
files: |-
build/libs/**
token: "${{secrets.GITHUB_TOKEN}}"
-37
View File
@@ -1,37 +0,0 @@
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS
]
runs-on: ubuntu-22.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: capture build artifacts
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/
+1 -1
View File
@@ -9,7 +9,7 @@ cooperative data synthesis.
Gradle: Gradle:
```groovy ```groovy
repositories { repositories {
maven { url "https://maven.bigduckie.dev/releases" } maven { url "https://git.bigduckie.dev/api/packages/big-duckie/maven" }
} }
dependencies { dependencies {
+15 -6
View File
@@ -1,8 +1,12 @@
plugins { plugins {
id 'fabric-loom' version '1.8-SNAPSHOT' id 'fabric-loom' version '1.10-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
if (System.getenv("VERSION")) {
project.mod_version = System.getenv("VERSION")
}
version = "${project.mod_version}-${project.minecraft_version}" version = "${project.mod_version}-${project.minecraft_version}"
group = project.maven_group group = project.maven_group
@@ -87,11 +91,16 @@ publishing {
// The repositories here will be used for publishing your artifact, not for // The repositories here will be used for publishing your artifact, not for
// retrieving dependencies. // retrieving dependencies.
maven { maven {
name = "personal" name = "Gitea"
url = "https://maven.bigduckie.dev/releases" url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
credentials {
username = System.getenv("MAVEN_USERNAME") credentials(HttpHeaderCredentials) {
password = System.getenv("MAVEN_PASSWORD") name = "Authorization"
value = "token ${System.getenv("MAVEN_TOKEN")}"
}
authentication {
header(HttpHeaderAuthentication)
} }
} }
} }
+5 -5
View File
@@ -4,14 +4,14 @@ org.gradle.parallel=true
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
minecraft_version=1.20.1 minecraft_version=1.21.1
yarn_mappings=1.20.1+build.10 yarn_mappings=1.21.1+build.3
loader_version=0.16.7 loader_version=0.16.11
# Mod Properties # Mod Properties
mod_version=1.0.7 mod_version=dev
maven_group=dev.bigduckie maven_group=dev.bigduckie
archives_base_name=static-data archives_base_name=static-data
# Dependencies # Dependencies
fabric_version=0.92.2+1.20.1 fabric_version=0.115.4+1.21.1
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
@@ -145,7 +145,7 @@ public class StaticData {
if (Files.isDirectory(globalStaticDataFolder)) { if (Files.isDirectory(globalStaticDataFolder)) {
Path data = globalStaticDataFolder.resolve(name); Path data = globalStaticDataFolder.resolve(name);
if (Files.exists(data) && !Files.isDirectory(data)) { if (Files.exists(data) && !Files.isDirectory(data)) {
return Optional.of(new StaticDataItem(new Identifier(GLOBAL_DATA_NAMESPACE, name), data)); return Optional.of(new StaticDataItem(Identifier.of(GLOBAL_DATA_NAMESPACE, name), data));
} }
} }
@@ -246,10 +246,10 @@ public class StaticData {
if (rel.startsWith("static_data/")) { //Should always be true if (rel.startsWith("static_data/")) { //Should always be true
rel = rel.substring("static_data/".length()); rel = rel.substring("static_data/".length());
} }
return new Identifier(container.getMetadata().getId(), rel); return Identifier.of(container.getMetadata().getId(), rel);
} }
private static Identifier toGlobalIdentifier(Path root, Path path) { private static Identifier toGlobalIdentifier(Path root, Path path) {
return new Identifier(GLOBAL_DATA_NAMESPACE, getRelative(root, path)); return Identifier.of(GLOBAL_DATA_NAMESPACE, getRelative(root, path));
} }
} }
+5
View File
@@ -20,6 +20,11 @@
"dev.bigduckie.staticdata.StaticDataInitializer" "dev.bigduckie.staticdata.StaticDataInitializer"
] ]
}, },
"custom": {
"modmenu": {
"badges": [ "library" ]
}
},
"depends": { "depends": {
"fabricloader": ">=0.16.7", "fabricloader": ">=0.16.7",
"minecraft": "~1.20.1", "minecraft": "~1.20.1",