Skip to content

Merge pull request #168 from Poing-Studios/adaptive-banner-not-working #8

Merge pull request #168 from Poing-Studios/adaptive-banner-not-working

Merge pull request #168 from Poing-Studios/adaptive-banner-not-working #8

Workflow file for this run

name: Build Android
on:
push:
tags:
- '*'
env:
TAG_NAME: Android_v3.5+
RELEASE_NAME: Android Compiled files for v3.5+
jobs:
android-template:
name: Compiling Gradle (Android)
runs-on: "ubuntu-latest"
strategy:
matrix:
GODOT_VERSIONS: [3.5, 3.5.1, 4.0]
steps:
- uses: actions/checkout@v2
# Github Actions Matrix doesnt support x.0 values, it's replaced by ''
- name: Verify current matrix's GODOT_VERSIONS
run: |
CURRENT_GODOT_VERSION=${{matrix.GODOT_VERSIONS}}
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: ${{matrix.GODOT_VERSIONS}}
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@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts_output/${{ env.OUTPUT_FILENAME }}
tag: ${{ github.ref }}
overwrite: true