9
9
path : main
10
10
submodules : true
11
11
name : Checkout Repository
12
+ - name : Extract Metadata
13
+ id : metadata
14
+ run : python3 main/.scripts/extract-metadata.py
12
15
- name : Add Universe Repository
13
16
run : sudo add-apt-repository universe
14
17
- name : Update Packages
@@ -18,29 +21,57 @@ jobs:
18
21
- name : Install makelove
19
22
run : pip3 install git+https://github.com/pfirsich/makelove/
20
23
- name : Build
21
- run : cd main && python3 -m makelove
24
+ run : cd main && python3 -m makelove && cd ..
25
+ - name : Build (Android)
26
+ id : build-android
27
+ uses : love-actions/love-actions-android@v1
28
+ with :
29
+ app-name : ${{ steps.metadata.outputs.title }}
30
+ bundle-id : net.stabyourself.${{ steps.metadata.outputs.id }}
31
+ product-name : ${{ steps.metadata.outputs.id }}
32
+ resource-path : " main/.android-resources"
33
+ love-ref : ${{ steps.metadata.outputs.love-version }}
34
+ love-package : main/makelove-build/love/${{ env.ARTIFACT_NAME_LOVE }}
35
+ version-string : ${{ steps.metadata.outputs.version }}
36
+ version-code : ${{ steps.metadata.outputs.android-version }}
37
+ output-folder : " main/makelove-build/android"
38
+ keystore-alias : ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
39
+ keystore-base64 : ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
40
+ keystore-key-password : ${{ secrets.ANDROID_KEYSTORE_KEYPASSWORD }}
41
+ keystore-store-password : ${{ secrets.ANDROID_KEYSTORE_STOREPASSWORD }}
22
42
- name : Artifact (LÖVE)
23
43
uses : actions/upload-artifact@v3
24
44
with :
25
- name : a99e -source
45
+ name : ${{ steps.metadata.outputs.id }} -source
26
46
path : main/makelove-build/love/${{ env.ARTIFACT_NAME_LOVE }}
27
47
- name : Artifact (AppImage)
28
48
uses : actions/upload-artifact@v3
29
49
with :
30
- name : a99e -linux
50
+ name : ${{ steps.metadata.outputs.id }} -linux
31
51
path : main/makelove-build/appimage/${{ env.ARTIFACT_NAME_APPIMAGE }}
32
52
- name : Artifact (Win64)
33
53
uses : actions/upload-artifact@v3
34
54
with :
35
- name : a99e -win64
55
+ name : ${{ steps.metadata.outputs.id }} -win64
36
56
path : main/makelove-build/win64/${{ env.ARTIFACT_NAME_WIN64 }}
37
57
- name : Artifact (Win32)
38
58
uses : actions/upload-artifact@v3
39
59
with :
40
- name : a99e -win32
60
+ name : ${{ steps.metadata.outputs.id }} -win32
41
61
path : main/makelove-build/win32/${{ env.ARTIFACT_NAME_WIN32 }}
42
62
- name : Artifact (MacOS)
43
63
uses : actions/upload-artifact@v3
44
64
with :
45
- name : a99e -macos
65
+ name : ${{ steps.metadata.outputs.id }} -macos
46
66
path : main/makelove-build/macos/${{ env.ARTIFACT_NAME_MACOS }}
67
+ - name : Artifact (Android Debug)
68
+ uses : actions/upload-artifact@v3
69
+ with :
70
+ name : ${{ steps.metadata.outputs.id }}-android-debug
71
+ path : main/makelove-build/android/${{ steps.metadata.outputs.id }}-debug.apk
72
+ - name : Artifact (Android Release)
73
+ if : " ${{ secrets.ANDROID_KEYSTORE_ALIAS != '' && secrets.ANDROID_KEYSTORE_BASE64 != '' && secrets.ANDROID_KEYSTORE_KEYPASSWORD != '' && secrets.ANDROID_KEYSTORE_STOREPASSWORD != '' }}"
74
+ uses : actions/upload-artifact@v3
75
+ with :
76
+ name : ${{ steps.metadata.outputs.id }}-android-release
77
+ path : main/makelove-build/android/${{ steps.metadata.outputs.id }}-release.apk
0 commit comments