Skip to content

Commit a43024f

Browse files
authored
Adjustments (#54)
* Added adjustments to bring things more in-line * Removed repo dependency * Added assemble to build all targets. * Added cache * Test of cache key * Added restore key * Added more logging * Added more logging * Added more logging * Added more logging * Added fix for zip cache * Tidy up publish job * Added publish to sonar type * testing * Should work now * Fixed publish * Added fix to publish only on release
1 parent 43c3a11 commit a43024f

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name: Publish
55

66
on:
7-
push:
8-
branches: [ master ]
7+
release:
8+
types: [prereleased, released]
99

1010
jobs:
1111
build:
@@ -18,27 +18,26 @@ jobs:
1818
uses: actions/setup-java@v1
1919
with:
2020
java-version: 1.8
21-
# - name: Grant execute permission for gradlew
22-
# run: chmod +x gradlew
23-
# - name: Retrieve cache key
24-
# id: cache-key
25-
# uses: actions/cache@v2
26-
# with:
27-
# path: build/Firebase-6.17.0.zip
28-
# key: key-Firebase-6.17.0
29-
# restore-keys: key-Firebase-6.17.0
30-
# - name: Expand Zip
31-
# if: steps.cache-key.outputs.cache-hit == 'true'
32-
# run: unzip build/Firebase-6.17.0.zip -d build
33-
# - name: Download Unzip Firebase
34-
# run: ./gradlew unzipIOSFirebase
35-
# - name: Publish
36-
# uses: eskatos/gradle-command-action@v1
37-
# with:
38-
# arguments: publish
39-
# env:
40-
# sonatypeUsername: ${{ secrets.SONATYPEUSERNAME }}
41-
# sonatypePassword: ${{ secrets.SONATYPEPASSWORD }}
42-
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
43-
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PASSPHRASE }}
44-
# token: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Grant execute permission for gradlew
22+
run: chmod +x gradlew
23+
- name: Retrieve cache key
24+
id: cache-key
25+
uses: actions/cache@v2
26+
with:
27+
path: build/Firebase-6.17.0.zip
28+
key: key-Firebase-6.17.0
29+
restore-keys: key-Firebase-6.17.0
30+
- name: Expand Zip
31+
if: steps.cache-key.outputs.cache-hit == 'true'
32+
run: unzip build/Firebase-6.17.0.zip -d build
33+
- name: Download Unzip Firebase
34+
run: ./gradlew unzipIOSFirebase
35+
- name: Publish
36+
uses: eskatos/gradle-command-action@v1
37+
with:
38+
arguments: publish
39+
env:
40+
sonatypeUsername: ${{ secrets.SONATYPEUSERNAME }}
41+
sonatypePassword: ${{ secrets.SONATYPEPASSWORD }}
42+
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
43+
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PASSPHRASE }}

0 commit comments

Comments
 (0)