Merge Feature/1 collection assertions (#8) #4
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: [ main ] | |
| jobs: | |
| release: | |
| runs-on: [ubuntu-latest] | |
| permissions: | |
| contents: write | |
| packages: write | |
| steps: | |
| - name: Setup | |
| uses: Pointyware/.github/.github/actions/checkout-java-gradle@b70bbae19637171d6cf9311f06a59f1c15e2598b | |
| - name: Get Version String | |
| run: | | |
| echo LIB_VERSION=$(cat gradle/libs.versions.toml | | |
| grep "kass" | sed 's/.*\"\(.*\)\"/\1/') >> "$GITHUB_ENV" | |
| - name: Tag Version | |
| run: | | |
| versionString=v$LIB_VERSION | |
| git tag $versionString | |
| git push origin $versionString | |
| - name: Publish | |
| run: | | |
| ./gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository \ | |
| publishJvmPublicationToGitHubPackagesRepository \ | |
| publishAndroidDebugPublicationToGitHubPackagesRepository \ | |
| publishAndroidReleasePublicationToGitHubPackagesRepository \ | |
| -Pgithub.user=${{ secrets.BUILD_USER }} \ | |
| -Pgithub.token=${{ secrets.BUILD_TOKEN }} |