Skip to content

Commit

Permalink
Set up Architectury publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Dec 16, 2023
1 parent 2ed9109 commit 9faf580
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Compile & Release

on:
push:
branches:
- develop

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Upload to Maven
run: ./gradlew publish
env:
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
12 changes: 12 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,16 @@ publishing {
from(components["java"])
}
}

repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
setUrl("https://deploy.shedaniel.me/")
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}

0 comments on commit 9faf580

Please sign in to comment.