Skip to content

Commit 8dd6b1f

Browse files
committed
try publish to github packages
1 parent e532819 commit 8dd6b1f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/gradle-ci-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" \
2222
--output secret.gpg publish_key.gpg
2323
echo "::set-env name=RELEASE_VERSION::${GITHUB_REF:11}"
24+
echo "::set-env name=GITHUB_TOKEN::${{secrets.GITHUB_TOKEN}}"
25+
2426
- name: Publish with Gradle
2527
uses: eskatos/gradle-command-action@v1
2628
with:

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
plugins {
2-
id 'maven'
32
id 'java-library'
43
id 'maven-publish'
54
id 'signing'
@@ -63,6 +62,14 @@ publishing {
6362
}
6463
}
6564
}
65+
maven {
66+
name = "GitHubPackages"
67+
url = uri("https://maven.pkg.github.com/eaxdev/JsonSQL4J")
68+
credentials {
69+
username = project.findProperty("gpr.user") ?: System.getenv("eaxdev")
70+
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
71+
}
72+
}
6673
}
6774
}
6875

0 commit comments

Comments
 (0)