-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove build config for publishing Maven remote
- Loading branch information
Showing
4 changed files
with
41 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Tanzawa-CI-Release | ||
|
||
on: [workflow_dispatch, workflow_call] | ||
concurrency: ${{ github.workflow }} | ||
|
||
jobs: | ||
Publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
shell: bash | ||
env: | ||
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | ||
|
||
steps: | ||
- name: Setup_Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create_Release | ||
if: contains(github.ref, '/tags/') | ||
run: | | ||
cd modules/tgsql | ||
../../gradlew -i distZip | ||
cd - | ||
set -x | ||
gh release create ${TANZAWA_VERSION} modules/tgsql/cli/build/distributions/tgsql.zip --title ${TANZAWA_VERSION} --latest --repo project-tsurugi/tanzawa | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TANZAWA_VERSION: ${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,6 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'java-test-fixtures' | ||
id 'signing' | ||
id 'maven-publish' | ||
|
||
id 'tanzawa.java-conventions' | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name 'OSSRH' | ||
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
url isReleaseVersion ? releasesRepoUrl : snapshotsRepoUrl | ||
credentials { | ||
username findProperty('st.ossrh.user') ?: System.getenv('ST_OSSRH_USER') | ||
password findProperty('st.ossrh.password') ?: System.getenv('ST_OSSRH_PASSWORD') | ||
} | ||
} | ||
} | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
pom { | ||
name = 'Tanzawa' | ||
description = 'Tsurugi SQL console engine is a core library of Tsurugi SQL console.' | ||
url = 'https://github.com/project-tsurugi/tanzawa' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'project-tsurugi' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:https://github.com/project-tsurugi/tanzawa.git' | ||
developerConnection = 'scm:git:https://github.com/project-tsurugi/tanzawa.git' | ||
url = 'https://github.com/project-tsurugi/tanzawa' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
required { isReleaseVersion && gradle.taskGraph.hasTask(":${project.name}:publishMavenJavaPublicationToOSSRHRepository") } | ||
def signingKeyId = findProperty("signingKeyId") | ||
def signingKey = findProperty("signingKey") | ||
def signingPassword = findProperty("signingPassword") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.mavenJava | ||
} |