Fix and test workflow runs. (#16) #3
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 | |
| on: | |
| push: | |
| branches: [ release ] | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| publish-jvm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Publish JVM, JS, WasmJs and KMP metadata | |
| run: | | |
| ./gradlew \ | |
| :kraft-ksp:publish \ | |
| :kraft-annotations:publishKotlinMultiplatformPublicationToGitHubPackagesRepository \ | |
| :kraft-annotations:publishJvmPublicationToGitHubPackagesRepository \ | |
| :kraft-annotations:publishJsPublicationToGitHubPackagesRepository \ | |
| :kraft-annotations:publishWasmJsPublicationToGitHubPackagesRepository \ | |
| --no-configuration-cache \ | |
| -Pgpr.user=${{ github.actor }} \ | |
| -Pgpr.token=${{ secrets.GITHUB_TOKEN }} | |
| publish-ios: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Publish iOS targets | |
| run: | | |
| ./gradlew \ | |
| :kraft-annotations:publishIosX64PublicationToGitHubPackagesRepository \ | |
| :kraft-annotations:publishIosArm64PublicationToGitHubPackagesRepository \ | |
| :kraft-annotations:publishIosSimulatorArm64PublicationToGitHubPackagesRepository \ | |
| --no-configuration-cache \ | |
| -Pgpr.user=${{ github.actor }} \ | |
| -Pgpr.token=${{ secrets.GITHUB_TOKEN }} | |
| create-release: | |
| runs-on: ubuntu-latest | |
| needs: [ publish-jvm, publish-ios ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Create GitHub Release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| VERSION=$(grep "kraft.version=" gradle/gradle.properties | cut -d= -f2) | |
| gh release create "v$VERSION" --generate-notes --title "v$VERSION" |