-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1000 Bytes
/
publish-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish Release
on:
release:
types: [released]
env:
MAVEN_SNAPSHOT: false
jobs:
publish:
name: Publish release build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out code
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 publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --max-workers 1
- name: Clean up secrets
if: always()
run: scripts/cleanup-secrets.sh