Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Archive repository and redirect to main repo #12

Archive repository and redirect to main repo

Archive repository and redirect to main repo #12

Workflow file for this run

name: CI Android PR
on:
pull_request:
types: [opened, synchronize]
jobs:
detect-latest:
name: Check latest Godot version
runs-on: ubuntu-latest
outputs:
godot_version: ${{ steps.detect.outputs.godot_version }}
steps:
- name: Detect latest Godot version
id: detect
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LATEST=$(gh api repos/godotengine/godot/releases \
--jq '[.[] | select(.tag_name | test("^4\\.[0-9]+(\\.[0-9]+)?-stable$")) | .tag_name][0]' \
| sed 's/-stable//' \
| awk -F. '{if(NF==2) print $0".0"; else print $0}')
echo "godot_version=$LATEST" >> $GITHUB_OUTPUT
build-and-artifact:
name: Build & Upload Artifact
needs: detect-latest
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
- name: Build Plugins
run: |
chmod +x ./gradlew
./gradlew build -PgodotVersion=${{ needs.detect-latest.outputs.godot_version }}
- name: Compress the artifact output
run: |
./gradlew zipPlugins -PgodotVersion="${{ needs.detect-latest.outputs.godot_version }}"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: poing-godot-admob-android-v${{ needs.detect-latest.outputs.godot_version }}-${{ github.event.pull_request.head.sha }}
path: .output/poing-godot-admob-android-v${{ needs.detect-latest.outputs.godot_version }}.zip
retention-days: 14