update workflows

This commit is contained in:
Nitwel 2023-12-13 23:50:39 +01:00
parent f6f60d3a6e
commit a0433a5659
2 changed files with 14 additions and 3 deletions

View File

@ -62,7 +62,7 @@ jobs:
export_debug: true export_debug: true
relative_project_path: ./ relative_project_path: ./
archive_output: true archive_output: true
presets_to_export: "Android" filter_exports: "Android"
- name: create release - name: create release
uses: ncipollo/release-action@v1.11.2 uses: ncipollo/release-action@v1.11.2

View File

@ -49,7 +49,20 @@ jobs:
mkdir -p ./android/build mkdir -p ./android/build
touch ./android/build/.gdignore touch ./android/build/.gdignore
wget -nv https://downloads.tuxfamily.org/godotengine/4.1.3/Godot_v4.1.3-stable_export_templates.tpz -O ./godot_templates.tpz
unzip -q ./godot_templates.tpz -d .
rm ./godot_templates.tpz
unzip -q ./templates/android_source.zip -d ./android/build/
rm ./templates/android_source.zip
sed -i 's/singleInstancePerTask/singleTask/g' ./android/build/AndroidManifest.xml
versioncode=$(eval "git tag | grep -v "test" | wc -l") versioncode=$(eval "git tag | grep -v "test" | wc -l")
sed -i "s/BUILD_VERSION_CODE/$versioncode/g" export_presets.cfg
sed -i "s/android:versionCode=\"1\"/android:versionCode=\"$versioncode\"/g" ./android/build/AndroidManifest.xml
sed -i 's/BUILD_VERSION/${{ github.ref_name }}/g' export_presets.cfg
sed -i "s/android:versionName=\"1.0\"/android:versionName=\"${{ github.ref_name }}\"/g" ./android/build/AndroidManifest.xml
- name: export game - name: export game
id: export id: export
@ -62,8 +75,6 @@ jobs:
relative_project_path: ./ relative_project_path: ./
archive_output: true archive_output: true
filter_exports: "AndroidProduction" filter_exports: "AndroidProduction"
version: ${{ github.ref_name }}"
production: true
- name: create release - name: create release
uses: ncipollo/release-action@v1.11.2 uses: ncipollo/release-action@v1.11.2