Skip to content

Commit

Permalink
Update snapshots-android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tehdiplomat authored Nov 25, 2023
1 parent c83bb5f commit 74cc6a8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/snapshots-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,20 @@ jobs:
- name: Build/Install/Publish to GitHub Packages Apache Maven
run: |
export _JAVA_OPTIONS="-Xmx2g"
d=$(date +%m-%d)
# Replace date in forge-gui-mobile/src/forge/Forge.java
sed -i -e "s/-SNAPSHOT/-SNAPSHOT-${d}/g" forge-gui-mobile/src/forge/Forge.java
mvn -U -B -P android-release-build,android-release-sign install -e -Dsign.keystore=forge.keystore -Dsign.alias=Forge -Dsign.storepass=${{ secrets.SIGN_STORE_PASS }} -Dsign.keypass=${{ secrets.SIGN_STORE_PASS }} -Dcardforge-repo.username=${{ secrets.FTP_USERNAME }} -Dcardforge-repo.password=${{ secrets.FTP_PASSWORD }} -Dandroid.sdk.path=/usr/local/lib/android/sdk -Dandroid.buildToolsVersion=30.0.3 -Dmaven.test.skip=true
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Move important file
run: |
mkdir -p forge-gui-android/target/upload
mv forge-gui-android/target/*-signed-aligned.apk forge-gui-android/target/upload/
mv forge-gui-android/target/assets.zip forge-gui-android/target/upload/
ls forge-gui-android/target/upload/
cd forge-gui-android/target/upload/
out="$(basename -s .apk *)"
mv "${out}.apk" "${out}-${d}.apk"
cd -
env:
GITHUB_TOKEN: ${{ github.token }}

- name: 📂 Sync files
uses: SamKirkland/[email protected]
Expand Down

0 comments on commit 74cc6a8

Please sign in to comment.