Skip to content

Commit

Permalink
[CI] Publish after build
Browse files Browse the repository at this point in the history
  • Loading branch information
szysas committed Apr 15, 2024
1 parent d453fb3 commit 35c8d82
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,26 @@ jobs:
with:
arguments: build -i
cache-read-only: false

publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Publish with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository -i
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_ossrhUserName: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
29 changes: 0 additions & 29 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 35c8d82

Please sign in to comment.