Updated depenencies;kotlin 2.0.0 #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish snapshot" | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
snapshot-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Decrypt secrets | |
run: scripts/decrypt-secrets.sh "${{ secrets.SECRETS_PASSPHRASE }}" | |
- name: Build project | |
run: ./gradlew clean :composenav:assembleRelease | |
- name: Publish to MavenCentral | |
run: ./gradlew :composenav:publishReleasePublicationToSonatypeRepository | |
env: | |
MAVEN_SNAPSHOT: true | |
- name: Clean up secrets | |
if: always() | |
run: scripts/cleanup-secrets.sh |