Skip to content

Commit

Permalink
Publish to Moonsworth's Maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
phase committed Dec 19, 2023
1 parent 5dd61e7 commit e356d4c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 87 deletions.
55 changes: 24 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
name: Build
on: [push, pull_request]

on:
push:
branches: [lunar/0.15.3]

jobs:
build:
strategy:
matrix:
java: [17-jdk, 21-jdk]
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v4
- run: ./gradlew build publishToMavenLocal --stacktrace --warning-mode fail
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
name: Deploy

client_test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- name: Run Auto test Client
uses: modmuss50/xvfb-action@v1
- name: Checkout from GitHub
uses: actions/checkout@master

- name: Configure Google Cloud credentials
uses: google-github-actions/auth@v1
with:
run: ./gradlew :minecraft:minecraft-test:runProductionAutoTestClient --stacktrace --warning-mode=fail
- uses: actions/upload-artifact@v3
if: always()
workload_identity_provider: 'projects/271010089174/locations/global/workloadIdentityPools/github/providers/github-oidc'
service_account: '[email protected]'

- name: Use JDK 17
uses: actions/setup-java@v1
with:
name: Client Test Screenshots
path: minecraft/minecraft-test/run/screenshots
java-version: 17

- name: Build
run: ./gradlew publish
14 changes: 0 additions & 14 deletions .github/workflows/manage_issues.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

11 changes: 3 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ plugins {
id 'fabric-loom' version '1.4-SNAPSHOT' apply false
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'me.modmuss50.remotesign' version "0.4.0"
id 'com.google.cloud.artifactregistry.gradle-plugin' version "2.2.0"
}

base {
Expand Down Expand Up @@ -378,14 +379,8 @@ publishing {

// select the repositories you want to publish to
repositories {
if (ENV.MAVEN_URL) {
maven {
url ENV.MAVEN_URL
credentials {
username ENV.MAVEN_USERNAME
password ENV.MAVEN_PASSWORD
}
}
maven {
url = uri("artifactregistry://us-maven.pkg.dev/moonsworth-299m4oir/maven-public")
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/fabricmc/loader/impl/FabricLoaderImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public class FabricLoaderImpl extends net.fabricmc.loader.FabricLoader {

public static final int ASM_VERSION = Opcodes.ASM9;

public static final String VERSION = "0.15.3";
public static final String VERSION = "0.15.3+lunar.1";

public static final String MOD_ID = "fabricloader";

public static final String CACHE_DIR_NAME = ".fabric"; // relative to game dir
Expand Down

0 comments on commit e356d4c

Please sign in to comment.