-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate publishing targets by job (#43)
* Separate publish target jobs * Bump version
- Loading branch information
Showing
3 changed files
with
29 additions
and
5 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
publish-github: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
@@ -20,19 +20,43 @@ jobs: | |
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
- name: Build | ||
run: ./gradlew publish --scan | ||
run: ./gradlew publishAllPublicationsToGithubRepository --scan | ||
env: | ||
PUBLISHING: true | ||
ORG_GRADLE_PROJECT_githubUsername: boswelja | ||
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
|
||
publish-oss: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
- name: Build | ||
run: ./gradlew publishAllPublicationsToOssRepository --scan | ||
env: | ||
PUBLISHING: true | ||
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }} | ||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
|
||
upload-pages: | ||
runs-on: ubuntu-latest | ||
needs: publish | ||
needs: | ||
- publish-github | ||
- publish-oss | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
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
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