Skip to content

Allow spread operator starting on new line (fixes regression of #2300… #111

Allow spread operator starting on new line (fixes regression of #2300…

Allow spread operator starting on new line (fixes regression of #2300… #111

name: Publish snapshot build
on:
push:
branches: [master]
paths: ['**/*.kt', '**/*.kts', '**/*.properties', '**/*.toml']
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
jobs:
publish:
runs-on: ubuntu-latest
if: github.repository == 'pinterest/ktlint'
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: ./.github/actions/setup-gradle-build
- name: Publish snapshot to Maven
run: ./gradlew clean publishMavenPublicationToMavenCentralRepository --no-daemon --no-parallel --no-configuration-cache
- name: Publish Kotlin-dev snapshot to Maven
run: ./gradlew -PkotlinDev clean publishMavenPublicationToMavenCentralRepository --no-daemon --no-parallel --no-configuration-cache