Skip to content

Commit

Permalink
Publish to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
kefirfromperm committed Jul 28, 2024
1 parent 5585c03 commit a61943b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: publish
on:
release:
types: [ created ]
workflow_dispatch:
# release:
# types: [ created ]

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -18,8 +20,18 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Publish package
- name: Prepare package to publish
run: ./gradlew publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_ACTOR: ${{ env.USER }}

- name: publish to maven central
run: ./gradlew jreleaserFullRelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ env.USER }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE }}
JRELEASER_MAVENCENTRAL_PASSWORD: ${{secrets.MAVEN_PASSWORD}}
JRELEASER_MAVENCENTRAL_USERNAME: ${{secrets.MAVEN_USERNAME}}
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {


group = "dev.jmina"
version = "0.1.2"
version = "0.1.3"

repositories {
// Use Maven Central for resolving dependencies.
Expand Down Expand Up @@ -83,7 +83,7 @@ jreleaser {
signing {
active = Active.ALWAYS
armored = true
mode = Signing.Mode.FILE
mode = Signing.Mode.of(System.getenv("SIGNING_MODE") ?: "MEMORY")
}
deploy {
maven {
Expand Down

0 comments on commit a61943b

Please sign in to comment.