Skip to content

Commit c3a2063

Browse files
committed
Trying out automated deployment
1 parent 5598bb2 commit c3a2063

3 files changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy SolfeGuido Android
2+
on:
3+
workflow_dispatch:
4+
5+
6+
jobs:
7+
deploy_android:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Prepare Environment
11+
run: sudo apt-get update && curl -Lo kitware-archive.sh https://apt.kitware.com/kitware-archive.sh && sudo bash ./kitware-archive.sh
12+
- name: Install Dependencies
13+
run: sudo apt-get install ninja-build cmake
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: true
18+
- name: Setup Java 17
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: adopt-hotspot
22+
java-version: 17
23+
cache: gradle
24+
- name: Build Release-specific Binaries
25+
run: bash ./gradlew bundleEmbedRecordRelease
26+
continue-on-error: false
27+
28+
- name: Sign AAB
29+
id: sign
30+
uses: r0adkll/sign-android-release@v1
31+
with:
32+
releaseDirectory: app/build/outputs/bundle/release
33+
signingKeyBase64: '${{ secrets.KEYSTORE }}'
34+
alias: '${{ secrets.SIGNING_KEY_ALIAS }}'
35+
keyStorePassword: '${{ secrets.SIGNING_STORE_PASSWORD }}'
36+
keyPassword: '${{ secrets.SIGNING_KEY_PASSWORD }}'
37+
- name: Deploy to google play store
38+
uses: r0adkll/upload-google-play@v1
39+
with:
40+
serviceAccountJson: ${{ secrets.SERVICE_ACCOUNT_JSON }}
41+
packageName: io.github.solfeguido
42+
releaseFiles: app/build/outputs/bundle/release/app-embed-record-release.aab
43+
track: production
44+
whatsNewDirectory: .github/distribution/whatsnew
45+
46+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ google-services.json
3131

3232
# love-android specific
3333
app/src/main/assets/
34-
app/src/embed/assets/
34+
!app/src/embed/assets/
3535
*.aab

app/src/embed/assets/game.love

1.21 MB
Binary file not shown.

0 commit comments

Comments
 (0)