Skip to content

Commit f15c37a

Browse files
committed
Fix maven url again and add more workflows
1 parent c92a074 commit f15c37a

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

.github/workflows/build.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ jobs:
1818
java-version: '17'
1919
distribution: 'temurin'
2020

21-
- name: Build with Gradle
22-
uses: gradle/actions/setup-gradle@v3
21+
- name: Validate Gradle Wrapper Integrity
22+
uses: gradle/actions/wrapper-validation@v3
23+
24+
- name: Build
25+
run: ./gradlew build
26+
27+
- uses: actions/upload-artifact@v4
2328
with:
24-
arguments: build
29+
name: Artifacts
30+
path: build/libs/

.github/workflows/release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
on: [workflow_dispatch]
3+
4+
permissions:
5+
contents: write
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v3
13+
14+
- name: Setup JDK 17
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '17'
18+
distribution: temurin
19+
cache: gradle
20+
21+
- name: Validate Gradle Wrapper Integrity
22+
uses: gradle/wrapper-validation-action@v1
23+
24+
- name: Make Gradle wrapper executable
25+
run: chmod +x ./gradlew
26+
27+
- name: Build & Release
28+
env:
29+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
30+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
31+
run: ./gradlew build publish publishMods

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ configurations {
7979

8080
repositories {
8181
mavenLocal()
82-
maven { url "https://maven.plus.dragons/releases" } // Create: Dragons Plus
82+
maven { url "https://maven.dragons.plus/releases" } // Create: Dragons Plus
8383
maven { url "https://maven.createmod.net" } // Ponder, Flywheel
8484
maven { url "https://mvn.devos.one/snapshots" } // Registrate
8585
maven { url "https://maven.blamejared.com" } // JEI

0 commit comments

Comments
 (0)