Skip to content

Gradle Publish Release #7

Gradle Publish Release

Gradle Publish Release #7

name: Gradle Publish Release
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- name: Set Gradle executable permissions
run: chmod +x ./gradlew
- name: Build and Publish
env:
REPOSILITE_USER: ${{ secrets.REPOSILITE_USER }}
REPOSILITE_SECRET: ${{ secrets.REPOSILITE_SECRET }}
LIB_VERSION: dev-${{ github.sha }}
run: ./gradlew publishKotlinMultiplatformPublicationToTimeMatesReleasesRepository -Pversion=dev-${{ env.LIB_VERSION }}