Skip to content

Commit

Permalink
Update GitHub Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso committed Oct 19, 2023
1 parent 1d50997 commit 5162130
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 105 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-compiler-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Compiler Plugin

on:
workflow_dispatch:

workflow_call:
jobs:
publish-compiler-plugin:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-converters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Converters

on:
workflow_dispatch:

workflow_call:
jobs:
publish-converters:
runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Gradle

on:
workflow_dispatch:

workflow_call:
jobs:
publish-gradle:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-ksp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Ksp

on:
workflow_dispatch:

workflow_call:
jobs:

publish-ksp:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-ktorfit-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Ktorfit Lib

on:
workflow_dispatch:

workflow_call:
jobs:
publish-ktorfit-lib:
runs-on: macos-latest
Expand Down
105 changes: 5 additions & 100 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,107 +7,12 @@ jobs:
publish-annotations:
uses: ./.github/workflows/publish-annotations.yml
publish-ksp:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- uses: gradle/gradle-build-action@v2

- name: Publish release
run: ./gradlew :ktorfit-ksp:publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
uses: ./.github/workflows/publish-ksp.yml
publish-converters:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- uses: gradle/gradle-build-action@v2

- name: Publish release
run: ./gradlew :ktorfit-converters:call:publishAllPublicationsToMavenCentralRepository :ktorfit-converters:flow:publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
uses: ./.github/workflows/publish-converters.yml
publish-compiler-plugin:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- uses: gradle/gradle-build-action@v2

- name: Publish release
run: ./gradlew :compiler-plugin:publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
uses: ./.github/workflows/publish-compiler-plugin.yml
publish-gradle:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- uses: gradle/gradle-build-action@v2

- name: Publish release
run: ./gradlew :gradle-plugin:publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
uses: ./.github/workflows/publish-gradle.yml
publish-ktorfit-lib:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- uses: gradle/gradle-build-action@v2

- name: Publish release
run: ./gradlew :ktorfit-lib:publishAllPublicationsToMavenCentralRepository :ktorfit-lib-core:publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
uses: ./.github/workflows/publish-ktorfit-lib.yml

0 comments on commit 5162130

Please sign in to comment.