Skip to content

Commit 594ea86

Browse files
committed
Try to automatically sync to maven central on release
1 parent 962cebb commit 594ea86

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ jobs:
6262
env:
6363
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
6464
BINTRAY_PASS: ${{ secrets.BINTRAY_PASSWORD }}
65+
OSS_USER_TOKEN_KEY: ${{ secrets.OSS_USER_TOKEN_KEY }}
66+
OSS_USER_TOKEN_PASS: ${{ secrets.OSS_USER_TOKEN_PASS }}
6567
run: bash github-build.sh
66-
# - name: Commit release tag and next version
67-
# uses: stefanzweifel/git-auto-commit-action@v4
68-
# with:
69-
# push_options: '--follow-tags'

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,12 @@ subprojects {
171171
userOrg = 'graphql-java-kickstart'
172172
version {
173173
name = project.version
174+
gpg {
175+
sign = true
176+
}
174177
mavenCentralSync {
175-
close = '1'
178+
user = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: ''
179+
password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: ''
176180
}
177181
}
178182
}

github-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ removeSnapshots() {
2525
commitRelease() {
2626
local APP_VERSION=$(getVersion)
2727
git commit -a -m "Update version for release"
28-
# git tag -a "v${APP_VERSION}" -m "Tag release version"
28+
git tag -a "v${APP_VERSION}" -m "Tag release version"
2929
}
3030

3131
bumpVersion() {
@@ -58,7 +58,7 @@ git config --global user.name "GitHub Actions"
5858
echo "Deploying release to Bintray"
5959
removeSnapshots
6060

61-
./gradlew clean assemble #&& ./gradlew bintrayUpload -x check --info
61+
./gradlew clean assemble && ./gradlew bintrayUpload -x check --info
6262

6363
commitRelease
6464
bumpVersion

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=9.3.2-SNAPSHOT
1+
version=10.0.0-SNAPSHOT
22
group = com.graphql-java-kickstart
33

44
PROJECT_NAME = graphql-java-servlet

0 commit comments

Comments
 (0)