Skip to content

Commit eb348b7

Browse files
committed
trying to simplify build steps
1 parent f90fb32 commit eb348b7

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ on:
55
types: [released]
66

77
jobs:
8-
build:
9-
runs-on: macos-latest
10-
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
13-
with:
14-
token: ${{ secrets.RIVE_REPO_PAT }}
15-
submodules: recursive
16-
- name: Init submodule
17-
run: git submodule update --init
18-
- name: Build Android
19-
uses: reactivecircus/android-emulator-runner@v2
20-
with:
21-
api-level: 30
22-
target: google_apis
23-
script: ./gradlew kotlin:assembleRelease
24-
- name: Upload artifact
25-
uses: actions/upload-artifact@v2
26-
with:
27-
name: rive
28-
path: kotlin/build/outputs/aar/kotlin-release.aar
8+
# build:
9+
# runs-on: macos-latest
10+
# steps:
11+
# - name: Checkout
12+
# uses: actions/checkout@v2
13+
# with:
14+
# token: ${{ secrets.RIVE_REPO_PAT }}
15+
# submodules: recursive
16+
# - name: Init submodule
17+
# run: git submodule update --init
18+
# - name: Build Android
19+
# uses: reactivecircus/android-emulator-runner@v2
20+
# with:
21+
# api-level: 30
22+
# target: google_apis
23+
# script: ./gradlew kotlin:assembleRelease
24+
# - name: Upload artifact
25+
# uses: actions/upload-artifact@v2
26+
# with:
27+
# name: rive
28+
# path: kotlin/build/outputs/aar/kotlin-release.aar
2929

3030
publish:
3131
name: Release build and publish
@@ -38,6 +38,7 @@ jobs:
3838
uses: actions/setup-java@v1
3939
with:
4040
java-version: 1.8
41+
4142
# Base64 decodes and pipes the GPG key content into the secret file
4243
- name: Prepare environment
4344
env:
@@ -46,19 +47,14 @@ jobs:
4647
run: |
4748
git fetch --unshallow
4849
sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
50+
4951
# Builds the release artifacts of the library
50-
- name: Download framework artifact
51-
uses: actions/download-artifact@v2
52-
with:
53-
name: rive
54-
path: kotlin/build/outputs/aar/kotlin-release.aar
52+
- name: Build Android
53+
run: ./gradlew kotlin:assembleRelease
54+
5555
# Runs upload, and then closes & releases the repository
5656
- name: Publish to MavenCentral
57-
uses: reactivecircus/android-emulator-runner@v2
58-
with:
59-
api-level: 30
60-
target: google_apis
61-
script: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
57+
run: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
6258
env:
6359
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6460
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)