-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (99 loc) · 4.39 KB
/
publish.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Patch version, publish to Sona and create new GitHub release
on:
pull_request:
types:
- closed
branches:
- master
paths-ignore:
- '.github/**'
workflow_dispatch:
jobs:
version:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
uses: rees46/workflow/.github/workflows/reusable-android-version.yaml@master
permissions: write-all
with:
appId: ${{ vars.PUBLIVERSIONER_ID }}
PROPERTIES_FILE: gradle.properties
SIGNING_SECRET_KEY_RING_FILE: com.rees46.key.gpg
SIGNING_SECRET_KEY_RING_FILE_LOCATION: ./personalization-sdk
OSSRH_USERNAME: ${{ vars.OSSRH_USERNAME }}
VARIANT_NAME: ${{ vars.REES_VARIANT_NAME }}
URL: ${{ vars.REES_REPO_URL }}
MAVEN_REPOSITORY_URL: ${{ vars.REES_MAVEN_URL }}
secrets:
SONATA_USERNAME: ${{ secrets.SONATA_USERNAME }}
SONATA_PASSWORD: ${{ secrets.SONATA_PASSWORD }}
appSecret: ${{ secrets.PUBLIVERSIONER_SECRET }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_REES46: ${{ secrets.SONATYPE_REES46 }}
SONATYPE_PERSONACLICK: ${{ secrets.SONATYPE_PERSONACLICK }}
SIGNING_KEY_FILE_AS_BASE64_STRING: ${{ secrets.SIGNING_KEY_FILE_AS_BASE64_STRING }}
publish-rees:
needs: version
uses: rees46/workflow/.github/workflows/reusable-android-publish.yaml@master
permissions: write-all
with:
PROPERTIES_FILE: gradle.properties
SIGNING_SECRET_KEY_RING_FILE: com.rees46.key.gpg
SIGNING_SECRET_KEY_RING_FILE_LOCATION: ./personalization-sdk
OSSRH_USERNAME: ${{ vars.OSSRH_USERNAME }}
VARIANT_NAME: ${{ vars.REES_VARIANT_NAME }}
URL: ${{ vars.REES_REPO_URL }}
MAVEN_REPOSITORY_URL: ${{ vars.REES_MAVEN_URL }}
secrets:
SONATA_USERNAME: ${{ secrets.SONATA_USERNAME }}
SONATA_PASSWORD: ${{ secrets.SONATA_PASSWORD }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY_FILE_AS_BASE64_STRING: ${{ secrets.SIGNING_KEY_FILE_AS_BASE64_STRING }}
SONATYPE_REES46: ${{ secrets.SONATYPE_REES46 }}
SONATYPE_PERSONACLICK: ${{ secrets.SONATYPE_PERSONACLICK }}
publish-persona:
needs: version
uses: rees46/workflow/.github/workflows/reusable-android-publish.yaml@master
permissions: write-all
with:
PROPERTIES_FILE: gradle.properties
SIGNING_SECRET_KEY_RING_FILE: com.rees46.key.gpg
SIGNING_SECRET_KEY_RING_FILE_LOCATION: ./personalization-sdk
OSSRH_USERNAME: ${{ vars.OSSRH_USERNAME }}
VARIANT_NAME: ${{ vars.PERSONA_VARIANT_NAME }}
URL: ${{ vars.PERSONA_REPO_URL }}
MAVEN_REPOSITORY_URL: ${{ vars.PERSONA_MAVEN_URL }}
secrets:
SONATA_USERNAME: ${{ secrets.SONATA_USERNAME }}
SONATA_PASSWORD: ${{ secrets.SONATA_PASSWORD }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_REES46: ${{ secrets.SONATYPE_REES46 }}
SONATYPE_PERSONACLICK: ${{ secrets.SONATYPE_PERSONACLICK }}
SIGNING_KEY_FILE_AS_BASE64_STRING: ${{ secrets.SIGNING_KEY_FILE_AS_BASE64_STRING }}
release:
needs: [ publish-rees, version ]
uses: rees46/workflow/.github/workflows/reusable-android-release.yaml@master
permissions: write-all
with:
appId: ${{ vars.PUBLIVERSIONER_ID }}
PROPERTIES_FILE: gradle.properties
SIGNING_SECRET_KEY_RING_FILE: com.rees46.key.gpg
SIGNING_SECRET_KEY_RING_FILE_LOCATION: ./personalization-sdk
OSSRH_USERNAME: ${{ vars.OSSRH_USERNAME }}
VARIANT_NAME: ${{ vars.REES_VARIANT_NAME }}
URL: ${{ vars.REES_REPO_URL }}
MAVEN_REPOSITORY_URL: ${{ vars.REES_MAVEN_URL }}
secrets:
SONATA_USERNAME: ${{ secrets.SONATA_USERNAME }}
SONATA_PASSWORD: ${{ secrets.SONATA_PASSWORD }}
appSecret: ${{ secrets.PUBLIVERSIONER_SECRET }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_REES46: ${{ secrets.SONATYPE_REES46 }}
SONATYPE_PERSONACLICK: ${{ secrets.SONATYPE_PERSONACLICK }}
SIGNING_KEY_FILE_AS_BASE64_STRING: ${{ secrets.SIGNING_KEY_FILE_AS_BASE64_STRING }}