Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit ae6e7c9

Browse files
committed
CloudSmith Maven
1 parent 4671423 commit ae6e7c9

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish package to CloudSmith Maven
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types: [published]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-java@v4
15+
with:
16+
java-version: '21'
17+
distribution: 'temurin'
18+
- name: Setup Gradle
19+
uses: gradle/actions/setup-gradle@v4
20+
21+
- name: Publish package
22+
run: |
23+
chmod +x gradlew
24+
./gradlew publish
25+
env:
26+
CLOUDSMITH_MAVEN_TOKEN: ${{ secrets.CLOUDSMITH_MAVEN_TOKEN }}

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,16 @@ publishing {
7474
// Notice: This block does NOT have the same function as the block in the top level.
7575
// The repositories here will be used for publishing your artifact, not for
7676
// retrieving dependencies.
77+
maven {
78+
name = "cloudsmith"
79+
url = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/"
80+
def releasesRepoUrl = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/"
81+
def snapshotsRepoUrl = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/"
82+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
83+
credentials {
84+
username = 'tex-true'
85+
password = System.getenv("CLOUDSMITH_MAVEN_TOKEN")
86+
}
87+
}
7788
}
7889
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G
33
loom.platform = neoforge
44

55
# Mod properties
6-
mod_version = 0.1.0-alpha1
7-
maven_group = me.textrue.foxified_networking
8-
archives_name = FoxifiedNetworkingAPI
6+
mod_version = 0.1.0-alpha2
7+
maven_group = me.textrue.foxified
8+
archives_name = foxified-networking-api
99

1010
# Minecraft properties
1111
minecraft_version = 1.21.3

0 commit comments

Comments
 (0)