Merge pull request #14318 from scala-steward/update/patches #2084
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: # Snapshots | |
| - main | |
| tags: ["**"] # Releases | |
| permissions: | |
| contents: read # for checkout | |
| jobs: | |
| publish-snapshot-artifacts: | |
| name: Publish / Artifacts (Snapshot) | |
| if: github.ref_type == 'branch' # Snapshots | |
| uses: playframework/.github/.github/workflows/publish.yml@unblock-repo_scala_sbt_org | |
| with: | |
| gradle-build-root: dev-mode/gradle-plugin | |
| cmd: | | |
| sbt "savePlayVersion; +publishM2; ci-release" | |
| cd dev-mode/gradle-plugin | |
| ./gradlew --no-daemon publishToSonatype -x test -PsonatypeUsername="$SONATYPE_USERNAME" -PsonatypePassword="$SONATYPE_PASSWORD" | |
| secrets: inherit | |
| publish-release: | |
| name: Publish / Artifacts (Stable Release) | |
| if: github.ref_type == 'tag' # Releases | |
| uses: playframework/.github/.github/workflows/publish.yml@unblock-repo_scala_sbt_org | |
| with: | |
| extra-coursier-cache-key: "publish" | |
| secrets: inherit | |
| publish-release-gradle: | |
| name: Publish / Artifacts (Stable Gradle Plugin) | |
| if: github.ref_type == 'tag' # Releases | |
| uses: playframework/.github/.github/workflows/publish.yml@unblock-repo_scala_sbt_org | |
| with: | |
| gradle-build-root: dev-mode/gradle-plugin | |
| cmd: | | |
| sbt "savePlayVersion; +publishM2" | |
| cd dev-mode/gradle-plugin | |
| ./gradlew --no-daemon publishPlugins -x test -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET" | |
| secrets: inherit |