Skip to content

Commit

Permalink
chore: changed relese and deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Aug 30, 2024
1 parent c19f000 commit 369ff79
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,32 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: verify release & deploy configuration
run: ./gradlew -Pversion=${{ env.NEW_VERSION }} jreleaserConfig
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.MAVEN_USERNAME }}
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: build artifact
run: ./gradlew -Pversion=${{ env.NEW_VERSION }} build
- name: upload artifact
run: ./gradlew -Pversion=${{ env.NEW_VERSION }} publish
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.MAVEN_USERNAME }}
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: deploy and release artifact to maven central
run: ./gradlew -Pversion=${{ env.NEW_VERSION }} jreleaserFullRelease
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jreleaser {
signing {
active.set(Active.ALWAYS)
armored = true
verify = false
}
deploy {
maven {
Expand Down Expand Up @@ -81,6 +80,7 @@ publishing {
name.set("norwegian-organization-number-validator")
description.set("Library for validation a norwegian organization number")
url.set("https://github.com/MikAoJk/norwegian-organization-number-validator")
inceptionYear.set("2024")
licenses {
license {
name.set("MIT License")
Expand Down

0 comments on commit 369ff79

Please sign in to comment.