Skip to content

Manual Build Android #47

Manual Build Android

Manual Build Android #47

name: Manual Build Android
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to publish the build (e.g., v2.0.1)'
required: true
godot_version:
description: 'Godot version to be builded (e.g., 3.5)'
required: true
build_version:
description: 'The Build Version of Godot (stable/rc1/beta1) (`alpha` or pre-alpha` could not work).'
default: 'stable'
jobs:
android-template:
name: Compiling Gradle (Android)
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Verify current inputs godot_version
run: |
CURRENT_GODOT_VERSION=${{ github.event.inputs.godot_version }}
if [ ${#CURRENT_GODOT_VERSION} -eq 1 ]; then CURRENT_GODOT_VERSION="${CURRENT_GODOT_VERSION}.0"; fi
echo "CURRENT_GODOT_VERSION=${CURRENT_GODOT_VERSION}" >> $GITHUB_ENV
- name: Build Android Action
id: build-android
uses: Poing-Studios/godot-android-action@master
with:
godot_version: ${{ github.event.inputs.godot_version }}
build_version: ${{ github.event.inputs.build_version }}
project_path: admob
gdap_file_path: admob/AdMob.gdap
- uses: actions/download-artifact@v3
with:
name: ${{ steps.build-android.outputs.artifact_name }}
path: artifacts_output
- name: Compress the artifact output
run: |
OUTPUT_FILENAME=android-template-v${{env.CURRENT_GODOT_VERSION}}.zip
echo "OUTPUT_FILENAME=${OUTPUT_FILENAME}" >> $GITHUB_ENV
zip -r ${OUTPUT_FILENAME} .
ls -R
working-directory: artifacts_output
- name: Upload binaries to release
uses: svenstaro/upload-release-action@2.3.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts_output/${{ env.OUTPUT_FILENAME }}
tag: ${{ github.event.inputs.tag }}
overwrite: true