1.2.0 #53
Workflow file for this run
This file contains hidden or 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
| name: Publish to Maven Central | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-natives: | |
| if: startsWith(github.event.release.tag_name, 'v') | |
| uses: ./.github/workflows/build-natives.yaml | |
| publish: | |
| if: startsWith(github.event.release.tag_name, 'v') | |
| needs: [build-natives] | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Download macOS ARM64 library | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-darwin-aarch64 | |
| path: src/jvmMain/resources/composetray/native/darwin-aarch64/ | |
| - name: Download macOS x86_64 library | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-darwin-x86-64 | |
| path: src/jvmMain/resources/composetray/native/darwin-x86-64/ | |
| - name: Download Linux x86_64 library | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-linux-x86-64 | |
| path: src/jvmMain/resources/composetray/native/linux-x86-64/ | |
| - name: Download Linux aarch64 library | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-linux-aarch64 | |
| path: src/jvmMain/resources/composetray/native/linux-aarch64/ | |
| - name: Download Windows x64 library | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-win32-x86-64 | |
| path: src/jvmMain/resources/composetray/native/win32-x86-64/ | |
| - name: Download Windows ARM64 library | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-win32-arm64 | |
| path: src/jvmMain/resources/composetray/native/win32-arm64/ | |
| - name: Verify native libraries | |
| run: | | |
| echo "=== Native libraries in resources ===" | |
| ls -la src/jvmMain/resources/composetray/native/darwin-aarch64/ | |
| ls -la src/jvmMain/resources/composetray/native/darwin-x86-64/ | |
| ls -la src/jvmMain/resources/composetray/native/linux-x86-64/ | |
| ls -la src/jvmMain/resources/composetray/native/linux-aarch64/ | |
| ls -la src/jvmMain/resources/composetray/native/win32-x86-64/ | |
| ls -la src/jvmMain/resources/composetray/native/win32-arm64/ | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Publish to Maven Central | |
| run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRALUSERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRALPASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNINGINMEMORYKEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNINGKEYID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNINGPASSWORD }} |