-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (40 loc) · 1.57 KB
/
test-maven-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
# name: SDK Release
# on:
# push:
# branches: [ DIA-3574-update-sdk-dep-view-binding ]
# jobs:
# build:
# name: Create Release and tag
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: set up JDK 17
# uses: actions/setup-java@v4
# with:
# distribution: zulu
# java-version: 17
# cache: gradle
# - name: Build and test
# run: |
# ./gradlew cmplibrary:build
# - name: Prepare environment
# env:
# SIGNING_SECRET_KEY_RING_FILE_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE_CONTENT }}
# SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
# run: |
# sudo bash -c "echo '$SIGNING_SECRET_KEY_RING_FILE_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
# - name: Release build
# run: ./gradlew cmplibrary:assemble
# - name: Source jar and dokka
# run: ./gradlew androidSourcesJar javadocJar
# - name: Publish to MavenCentral
# run: ./gradlew publishReleasePublicationToSonatypeRepository #--max-workers 1 closeAndReleaseRepository --info
# env:
# OSSRH_TOKEN_USER: ${{ secrets.OSSRH_TOKEN_USER }}
# OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
# SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
# SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
# SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}