Skip to content

Update plugin org.jetbrains.kotlin.android to v2.1.0 (#388) #168

Update plugin org.jetbrains.kotlin.android to v2.1.0 (#388)

Update plugin org.jetbrains.kotlin.android to v2.1.0 (#388) #168

name: Publish Snapshot
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: [ubuntu-latest]
env:
GRADLE_OPTS: -Dorg.gradle.parallel=false
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Publish to Maven Local
run: ./gradlew publishToMavenLocal
env:
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
ORG_GRADLE_PROJECT_USE_SNAPSHOT: true
- name: Upload Library Artifacts
uses: actions/upload-artifact@v4
with:
name: 'snapshot-artifacts'
path: '~/.m2/repository/'
- name: Publish to the Snapshot Repository
run: ./gradlew publishReleasePublicationToSnapshotRepository
env:
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_USE_SNAPSHOT: true