Skip to content

Use Worker API for Gradle Plugin #161

Use Worker API for Gradle Plugin

Use Worker API for Gradle Plugin #161

Workflow file for this run

name: Publish
on:
push:
branches: # Snapshots
- main
- gradle # TODO: remove this line
tags: ["**"] # Releases
release:
types: [published]
jobs:
publish-snapshot-artifacts:
name: Publish / Artifacts
if: github.ref_type == 'branch' # Snapshots
uses: playframework/.github/.github/workflows/publish.yml@v3
with:
gradle-build-root: gradle-twirl
cmd: |
sbt ci-release
cd gradle-twirl
./gradlew --no-daemon publishToSonatype -x test -PsonatypeUsername="$SONATYPE_USERNAME" -PsonatypePassword="$SONATYPE_PASSWORD"
secrets: inherit
publish-release-artifacts:
name: Publish / Artifacts
if: github.ref_type == 'tag' # Releases
uses: playframework/.github/.github/workflows/publish.yml@v3
with:
gradle-build-root: gradle-twirl
cmd: |
sbt ci-release
cd gradle-twirl
./gradlew --no-daemon publishPlugins -x test -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET"
secrets: inherit