Skip to content

Commit

Permalink
gradle.publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Apr 30, 2024
1 parent d4845f6 commit 3f12fd1
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Publish to Maven

on:
release:
types: [created]
push:
tags:
- '*'
release:
types: [ created ]
create:
tags:
- '*'

jobs:
publish:
Expand All @@ -15,21 +15,21 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}

- name: Publish to Maven Repository
uses: gradle/[email protected]
with:
arguments: --build-cache publish
env:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
- name: Publish to Maven Repository
uses: gradle/[email protected]
with:
arguments: --build-cache publish
env:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}

0 comments on commit 3f12fd1

Please sign in to comment.