Skip to content

Release

Release #14

Workflow file for this run

name : Release
on :
push :
tags :
- 'v*.*.*'
jobs :
publish-release :
runs-on : ubuntu-latest
if : github.repository == 'square/anvil'
timeout-minutes : 25
steps :
- uses : actions/checkout@v2
- uses : gradle/wrapper-validation-action@v1
- uses : actions/setup-java@v2
with :
distribution : 'temurin'
java-version : '11'
check-latest : true
- name : Publish Release 1.9
run : ./gradlew clean publish --no-build-cache --no-daemon --stacktrace --no-parallel && cd gradle-plugin && ./gradlew clean publish --no-build-cache --no-daemon --stacktrace && cd ..
env :
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ''
# TODO: Remove when we drop Kotlin 1.8 support
- name : Publish Release 1.8
run : ./gradlew clean publish --no-build-cache --no-daemon --stacktrace --no-parallel -Doverride_kotlin=1.8.22 -PVERSION_NAME=2.4.8-1-8 && cd gradle-plugin && ./gradlew clean publish --no-build-cache --no-daemon --stacktrace -Doverride_kotlin=1.8.22 -PVERSION_NAME=2.4.8-1-8 && cd ..
env :
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ''
- name : Extract release notes
id : release_notes
uses : ffurrer2/extract-release-notes@v1
- name : Create release
uses : softprops/action-gh-release@v1
with :
body : ${{ steps.release_notes.outputs.release_notes }}
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}