-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.44 KB
/
generate-publication.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
name: Generate publication
on:
push:
branches:
- main
jobs:
generate-publication:
name: Generate library publication
# Should be macOS to be able to create iOS variants as well
runs-on: macos-latest
env:
# For information about signing.* properties,
# see comments on signing { ... } block in the library build file
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY_CONTENT_BASE64: ${{ secrets.SIGNING_KEY_CONTENT_BASE64 }}
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up a specific Java version
uses: actions/setup-java@v4
with:
distribution: "temurin" # OR adopt OR microsoft OR...
java-version: "17"
- name: Decode the private GPG key file stored in GitHub secrets
run: echo $SIGNING_KEY_CONTENT_BASE64 | base64 -d > private-key.gpg
- name: Generate publication
run: >
./gradlew publishAllPublicationsToCustomLocalRepository
-Psigning.secretKeyRingFile="../private-key.gpg"
-Psigning.password="$SIGNING_PASSWORD"
-Psigning.keyId="$SIGNING_KEY_ID"
--stacktrace
- name: Store the publication at the bottom of the workflow summary page
uses: actions/upload-artifact@v4
with:
name: resultPublication
path: |
library/build/local-repository/