-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from Trendyol/AddPublishGithubAction
Add a new workflow for publishing new versions
- Loading branch information
Showing
2 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- name: Run unit tests | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: testDebugUnitTest | ||
|
||
- name: Publish | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: publish | ||
env: | ||
SIGNING_KEY: ${{ secrets.SONARTYPE_GPG_PRIVATE_KEY }} | ||
SIGNING_PASSWORD: ${{ secrets.SONARTYPE_GPG_PASSPHRASE }} | ||
OSSRH_USERNAME: ${{ secrets.SONARTYPE_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.SONARTYPE_PASSWORD }} | ||
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters