diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e315d0..c0a8445 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,9 @@ name: publish on: - release: - types: [ created ] + workflow_dispatch: +# release: +# types: [ created ] + jobs: publish: runs-on: ubuntu-latest @@ -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}} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 2712747..464656a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ plugins { group = "dev.jmina" -version = "0.1.2" +version = "0.1.3" repositories { // Use Maven Central for resolving dependencies. @@ -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 {