Skip to content

Merge pull request #936 from square/renovate/gradle-wrapper-validatio… #49

Merge pull request #936 from square/renovate/gradle-wrapper-validatio…

Merge pull request #936 from square/renovate/gradle-wrapper-validatio… #49

name: Publish snapshot
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish-snapshot:
runs-on: ubuntu-latest
if: github.repository == 'square/anvil'
timeout-minutes: 25
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 # v2
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
distribution: 'zulu'
java-version: '17'
check-latest: true
- name: Publish Release 1.9
run: ./gradlew clean publish --no-build-cache --no-daemon --stacktrace
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}