Skip to content

Commit

Permalink
Separate publishing targets by job (#43)
Browse files Browse the repository at this point in the history
* Separate publish target jobs

* Bump version
  • Loading branch information
boswelja authored Jan 9, 2024
1 parent 05acb1f commit b011205
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

jobs:
publish:
publish-github:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An AndroidX MenuHost & MenuProvider-like API for Jetpack Compose!

```kt
dependencies {
val menuproviderVersion = "1.2.0"
val menuproviderVersion = "1.2.1"

// Core provides a generic implementation fit for any design system
implementation("io.github.boswelja.menuprovider:core:$menuproviderVersion")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ android.useAndroidX=true
kotlin.code.style=official

# Below here is all packaging details, not build configuration.
version=1.2.0
version=1.2.1
group=io.github.boswelja.menuprovider

0 comments on commit b011205

Please sign in to comment.