Skip to content

Commit

Permalink
Publish windows artifacts from a mac host
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Sep 5, 2022
1 parent fa104bb commit 176fd0e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ env:

jobs:
publish_artifacts:
strategy:
matrix:
os: [macOS-latest, windows-latest]

runs-on: ${{matrix.os}}
runs-on: macOS-latest

steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
Expand Down Expand Up @@ -51,14 +47,7 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
run: ./gradlew :uri:publishAllPublicationsToMavenCentralRepository -PVERSION_NAME=${{ env.RELEASE_VERSION }}

- name: Publish the Windows artifacts
if: matrix.os == 'windows-latest'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
run: gradlew.bat :uri:publishMingwX64PublicationToMavenCentralRepository :uri:publishMingwX86PublicationToMavenCentralRepository -PVERSION_NAME=${{ env.RELEASE_VERSION }}
shell: cmd


publish_release:
needs: publish_artifacts
Expand Down

0 comments on commit 176fd0e

Please sign in to comment.