Skip to content

chore: publish artifact to maven configuration (#28) #1

chore: publish artifact to maven configuration (#28)

chore: publish artifact to maven configuration (#28) #1

Workflow file for this run

name: Publish SDK
on:
push:
tags:
- 'v*'
jobs:
deploy-release:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
name: Checkout code
- uses: burrunan/gradle-cache-action@v1
name: Deploy Release
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassphrase: ${{ secrets.GPG_PASSPHRASE }}
with:
job-id: release
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}