update workflows
This commit is contained in:
parent
f6f60d3a6e
commit
a0433a5659
2
.github/workflows/build-debug.yml
vendored
2
.github/workflows/build-debug.yml
vendored
|
@ -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
|
||||||
|
|
15
.github/workflows/build-prod.yml
vendored
15
.github/workflows/build-prod.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user