Merge pull request #176 from Poing-Studios/refactoring_v3.0.0 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Android | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
android-template: | |
name: Compiling Gradle (Android) | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
GODOT_VERSIONS: [4.1, 4.1.1] | |
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: Download and prepare the Stable Godot .AAR LIB | |
run: | | |
chmod +x ./scripts/unix/download_godot.sh | |
./scripts/unix/download_godot.sh ${{env.CURRENT_GODOT_VERSION}} | |
- name: Build Plugins | |
run: | | |
chmod +x ./gradlew | |
./gradlew build | |
- name: Compress the artifact output | |
run: | | |
./gradlew zipPlugins -PgodotVersion="${{env.CURRENT_GODOT_VERSION}}" | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: .output/poing-admob-android-v${{env.CURRENT_GODOT_VERSION}}.zip | |
tag: ${{ github.ref }} | |
overwrite: true |