Skip to content

Commit

Permalink
🔧 try android again
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Jan 15, 2025
1 parent 2523c0a commit 6d9aac0
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/publish-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,41 @@ env:
ANDROID_KEYSTORE_DEBUG_BASE64: ${{ secrets.ANDROID_KEYSTORE_DEBUG_BASE64 }}
SERVICE_ACCOUNT_JSON: ${{ secrets.ANDROID_SERVICE_ACCOUNT_JSON }}
WORKING_DIRECTORY: .
APPNAME: GodotDiceRoller
APPDOMAIN: net.canvoki.godot-dice-roller
GODOT_VERSION: 4.3
APPNAME: Godot Dice Roller
APPDOMAIN: net.canvoki.godot_dice_roller

jobs:

deploy:
#if: github.ref == 'refs/heads/prod'
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: barichello/godot-ci:4.3
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Godot Asset Lib Client install
shell: bash
run: |
apt update
apt install imagemagick
pip install --user godot-asset-library-client
- name: Read version number and version code
run: |
python tools/android-metadata.py # generates android metadata from README.md, CHANGES.md and screenshots
GODOT_VERSION=$(godot-asset-library-client project-field godot_version)
APPNAME=$(cat metadata/en-US/title.txt)
VERSION_NAME=$(godot-asset-library-client project-field project_version)
IFS='.' read -r -a v <<<"$VERSION_NAME"
VERSION_CODE=$(printf "%03d" ${v[*]})
echo "GODOT_VERSION=$GODOT_VERSION" >> $GITHUB_ENV
echo "APPNAME=$APPNAME" >> $GITHUB_ENV
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
python tools/android-metadata.py # generates android metadata from README.md, CHANGES.md and screenshots
- name: Create service-account.json
if: false
Expand Down Expand Up @@ -73,7 +83,11 @@ jobs:
sed -i "s|ANDROID_KEYSTORE_ALIAS|$ANDROID_KEYSTORE_ALIAS|g" $WORKING_DIRECTORY/.godot/export_credentials.cfg
sed -i "s|ANDROID_KEYSTORE_PASSWORD|$ANDROID_KEYSTORE_PASSWORD|g" $WORKING_DIRECTORY/.godot/export_credentials.cfg
- name: Godot Android export
- name: Godot Android export (barichello)
run: godot -v --export-release "Android" --headless

- name: Godot Android export (dulvui)
if: false
uses: dulvui/godot-android-export@v4.0.4
with:
godot-version: ${{ env.GODOT_VERSION }}
Expand Down

0 comments on commit 6d9aac0

Please sign in to comment.