-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.48 KB
/
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
44
45
name: Publish release
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92
- name: Get module name
id: get-name
run: |
ref="${{ github.ref}}"
name="$( echo ${ref##*/} | cut -d- -f1 )"
echo "name=$name" >> $GITHUB_OUTPUT
- name: Publish package
run: |
./gradlew publish-sdk-module-${{ env.NAME }} --continue
env:
NAME: ${{ steps.get-name.outputs.name }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SIGNING_IN_MEMORY_KEY }}
deploy-pages:
name: Trigger GH Pages deployment
if: startsWith(github.ref, 'refs/tags/bom-')
permissions:
pages: write
id-token: write
uses: ./.github/workflows/publish-pages.yml
secrets: inherit