Skip to content

v2.0.0

v2.0.0 #3

Workflow file for this run

name: Release on Maven
on:
release:
types: [published]
jobs:
publish-release-to-sonatype:
name: Publish release artifact to Sonatype
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Java 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Deploy artifact
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_WEBHOOK }}
MAVEN_SECRING_GPG_BASE64: ${{ secrets.MAVEN_SECRING_GPG_BASE64 }}
MAVEN_SECRING_PASSWORD: ${{ secrets.MAVEN_SECRING_PASSWORD }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository sendMraidDeployedToSonatypeMessageToSlack -PisRelease=true