-
Notifications
You must be signed in to change notification settings - Fork 175
Release client and server #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,58 @@ | ||||
| name: Release Client and Server | ||||
|
|
||||
| on: | ||||
| workflow_dispatch: | ||||
|
|
||||
| jobs: | ||||
| build: | ||||
| runs-on: macos-latest | ||||
| environment: release | ||||
|
|
||||
| permissions: | ||||
| contents: write | ||||
| packages: write | ||||
|
|
||||
| steps: | ||||
| - uses: actions/checkout@v5 | ||||
| - name: Set up JDK 21 | ||||
| uses: actions/setup-java@v5 | ||||
| with: | ||||
| java-version: '21' | ||||
| distribution: 'temurin' | ||||
|
|
||||
| - name: Setup Gradle | ||||
| uses: gradle/actions/setup-gradle@v4 | ||||
|
|
||||
| - name: Verify publication configuration | ||||
| run: ./gradlew kotlin-sdk-server:jreleaserConfig kotlin-sdk-client:jreleaserConfig | ||||
| env: | ||||
| JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||||
| JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||||
| JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | ||||
| JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | ||||
| JRELEASER_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} | ||||
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|
|
||||
| - name: Build with Gradle | ||||
| run: ./gradlew clean kotlin-sdk-server:assemble kotlin-sdk-client:assemble | ||||
| env: | ||||
| JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||||
| JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||||
| JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | ||||
| JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | ||||
| JRELEASER_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} | ||||
| GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | ||||
| SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} | ||||
|
|
||||
| - name: Publish to Maven Central Portal | ||||
| id: publish | ||||
| run: ./gradlew kotlin-sdk-server:publish kotlin-sdk-client:publish kotlin-sdk-server:jreleaserFullRelease kotlin-sdk-client:jreleaserFullRelease --info --stacktrace -Djreleaser.verbose=true | ||||
| env: | ||||
| JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||||
| JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||||
| JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | ||||
| JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | ||||
| JRELEASER_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} | ||||
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
| GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | ||||
| SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} | ||||
|
||||
| SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -63,4 +63,13 @@ jreleaser { | |||||
| files = false | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| release { | ||||||
| github { | ||||||
| skipRelease = true | ||||||
| skipTag = true | ||||||
| overwrite = false | ||||||
| token = "none" | ||||||
|
||||||
| token = "none" | |
| token = System.getenv("GITHUB_TOKEN") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These environment variables duplicate the JRELEASER_GPG_SECRET_KEY and JRELEASER_GPG_PASSPHRASE variables already set above. Consider removing the duplicates to reduce configuration redundancy.