Skip to content

Commit e9f7e55

Browse files
committed
Publish to GitHub Packages using OER token
Replace repsyUrl with explicit GitHub Packages repo. Update CI publish workflow to provide the OER token and remove legacy USERNAME/MAVEN_PASSWORD envs; fix minor whitespace.
1 parent dd1bd77 commit e9f7e55

File tree

5 files changed

+55
-57
lines changed

5 files changed

+55
-57
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
name: Publish
2-
on:
3-
release:
4-
workflow_dispatch:
5-
jobs:
6-
build:
7-
runs-on: blacksmith-4vcpu-ubuntu-2404
8-
permissions:
9-
contents: read
10-
packages: write
11-
steps:
12-
- uses: actions/checkout@v3
13-
- uses: useblacksmith/setup-java@v5
14-
with:
15-
java-version: '17'
16-
distribution: 'zulu'
17-
- name: Validate Gradle wrapper
18-
uses: gradle/[email protected]
19-
- name: Publish package
20-
uses: useblacksmith/setup-gradle/setup-gradle@v5
21-
with:
22-
arguments: publish
23-
env:
24-
USERNAME: ${{ secrets.USERNAME }}
25-
MAVEN_PASSWORD: ${{ secrets.PASSWORD }}
1+
name: Publish
2+
on:
3+
release:
4+
workflow_dispatch:
5+
jobs:
6+
build:
7+
runs-on: blacksmith-4vcpu-ubuntu-2404
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: useblacksmith/setup-java@v5
14+
with:
15+
java-version: "17"
16+
distribution: "zulu"
17+
- name: Validate Gradle wrapper
18+
uses: gradle/[email protected]
19+
- name: Publish package
20+
uses: useblacksmith/setup-gradle/setup-gradle@v5
21+
with:
22+
arguments: publish
23+
env:
24+
MAVEN_PASSWORD: ${{ secrets.OER_TOKEN_SHADOWBEE }}

common/build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ dependencies {
1515
}
1616

1717
publishing {
18-
repositories {
19-
maven {
20-
url repsyUrl
21-
credentials {
22-
username "${System.getenv("USERNAME")}"
23-
password "${System.getenv("MAVEN_PASSWORD")}"
24-
}
18+
repositories {
19+
maven {
20+
name = "GitHubPackages"
21+
url = "https://maven.pkg.github.com/Mod-Sauce/OtyacraftEngineRenewed"
22+
credentials {
23+
username = System.getenv("Shadowbee27")
24+
password = System.getenv("OER_TOKEN_SHADOWBEE")
2525
}
26+
}
2627
}
28+
2729
publications {
2830
gpr(MavenPublication) {
2931
from(components.java)

fabric/build.gradle

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ loom {
1515

1616
configurations {
1717
common
18-
shadowCommon
18+
shadowCommon
1919
compileClasspath.extendsFrom common
2020
runtimeClasspath.extendsFrom common
2121
developmentFabric.extendsFrom common
@@ -31,7 +31,7 @@ repositories {
3131
dependencies {
3232
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
3333
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
34-
34+
3535
modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}"
3636

3737
common(project(path: ":common", configuration: "namedElements")) { transitive false }
@@ -91,15 +91,16 @@ components.java {
9191
}
9292

9393
publishing {
94-
repositories {
95-
maven {
96-
url repsyUrl
97-
credentials {
98-
username "${System.getenv("USERNAME")}"
99-
password "${System.getenv("MAVEN_PASSWORD")}"
100-
}
101-
}
94+
repositories {
95+
maven {
96+
name = "GitHubPackages"
97+
url = "https://maven.pkg.github.com/Mod-Sauce/OtyacraftEngineRenewed"
98+
credentials {
99+
username = System.getenv("Shadowbee27")
100+
password = System.getenv("OER_TOKEN_SHADOWBEE")
101+
}
102102
}
103+
}
103104
publications {
104105
maven(MavenPublication) {
105106
from(components.java)

forge/build.gradle

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ configurations {
3333

3434
dependencies {
3535
forge "net.minecraftforge:forge:${rootProject.forge_version}"
36-
36+
3737
modApi "dev.architectury:architectury-forge:${rootProject.architectury_version_forge}"
3838

3939
common(project(path: ":common", configuration: "namedElements")) { transitive false }
@@ -92,15 +92,17 @@ components.java {
9292
}
9393

9494
publishing {
95-
repositories {
96-
maven {
97-
url repsyUrl
98-
credentials {
99-
username "${System.getenv("USERNAME")}"
100-
password "${System.getenv("MAVEN_PASSWORD")}"
101-
}
102-
}
95+
repositories {
96+
maven {
97+
name = "GitHubPackages"
98+
url = "https://maven.pkg.github.com/Mod-Sauce/OtyacraftEngineRenewed"
99+
credentials {
100+
username = System.getenv("Shadowbee27")
101+
password = System.getenv("OER_TOKEN_SHADOWBEE")
102+
}
103103
}
104+
}
105+
104106
publications {
105107
maven(MavenPublication) {
106108
from(components.java)

gradle.properties

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ cloth_config_version=11.1.136
1919
modmenu_version=7.2.2
2020
rei_version=12.1.785
2121
# Upload
22-
curesforge_id=
23-
modrinth_id=
24-
release_type=alpha
25-
maven_put_url=https://maven.pkg.github.com/Mod-Sauce/OtyacraftEngineRenewed
2622
maven_group=Github
27-
maven_put_pass=
2823
# Other
2924
repository_url=https://github.com/Mod-Sauce/OtyacraftEngineRenewed
30-
repsyUrl=https://repo.repsy.io/mvn/mod-sauce/otyacraftenginerenewed

0 commit comments

Comments
 (0)