Skip to content

Commit

Permalink
i beg of you
Browse files Browse the repository at this point in the history
lillithkt committed Nov 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b6f4b48 commit 7a1ce88
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -33,4 +33,5 @@ jobs:
run: |
./gradlew --no-daemon publish
env:
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
EventName: ${{ github.event_name }}
5 changes: 2 additions & 3 deletions common-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -67,18 +67,17 @@ android {

publishing {
var versionStr = project.version.toString()
val ci = System.getenv("CI") != null && System.getenv("GITHUB_EVENT_NAME") != "released"
val ci = System.getenv("CI") != null && System.getenv("EventName") != "release"
var repo = "releases"
if (ci) {
val commitHash = System.getenv("GITHUB_SHA").slice(0..6)
versionStr += "-#$commitHash"
repo = "snapshots"
}
val a = System.getenv("GITHUB_EVENT_NAME")
repositories {
maven {
name = "uninit"
url = uri("https://repo.uninit.dev/$repo$a")
url = uri("https://repo.uninit.dev/$repo")
credentials {
username = "admin"
password = System.getenv("REPOSILITE_PASSWORD")
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ android {

publishing {
var versionStr = project.version.toString()
val ci = System.getenv("CI") != null && System.getenv("GITHUB_EVENT_NAME") != "release"
val ci = System.getenv("CI") != null && System.getenv("EventName") != "release"
var repo = "releases"
if (ci) {
val commitHash = System.getenv("GITHUB_SHA").slice(0..6)

0 comments on commit 7a1ce88

Please sign in to comment.