Skip to content

Merge pull request #831 from playframework/dependabot/gradle/gradle-t… #380

Merge pull request #831 from playframework/dependabot/gradle/gradle-t…

Merge pull request #831 from playframework/dependabot/gradle/gradle-t… #380

Workflow file for this run

name: Publish
on:
push:
branches: # Snapshots
- 2.0.x
tags: ["**"] # Releases
jobs:
publish-snapshot-artifacts:
name: Publish / Artifacts (Snapshot)
if: github.ref_type == 'branch' # Snapshots
uses: playframework/.github/.github/workflows/publish.yml@v3
with:
gradle-build-root: gradle-twirl
cmd: |
sbt +compiler/publishM2 ci-release
cd gradle-twirl
./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@v3
secrets: inherit
publish-release-gradle:
name: Publish / Artifacts (Stable Gradle Plugin)
if: github.ref_type == 'tag' # Releases
uses: playframework/.github/.github/workflows/publish.yml@v3
with:
gradle-build-root: gradle-twirl
cmd: |
sbt +compiler/publishM2
cd gradle-twirl
./gradlew --no-daemon publishPlugins -x test -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET"
secrets: inherit