From 2add42b580530951b98c09d8665c12993ccd9f35 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 7 Mar 2023 22:14:18 +0200 Subject: [PATCH] Split itch upload to separate job - test5 Need to setup gradle and git repo to actually run dist In future maybe we can get rid of gradle dist entirely and just run packr directly, not today though --- .github/workflows/buildAndDeploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/buildAndDeploy.yml b/.github/workflows/buildAndDeploy.yml index e954ed7d9c..390c95e92a 100644 --- a/.github/workflows/buildAndDeploy.yml +++ b/.github/workflows/buildAndDeploy.yml @@ -134,6 +134,12 @@ jobs: ls android/build/outputs/apk/release mv android/build/outputs/apk/release/Unciv-release-unsigned-signed.apk deploy/Unciv-signed.apk + - name: Upload APK + uses: actions/upload-artifact@v3 + with: + name: APK + path: deploy/Unciv-signed.apk + ## DESKTOP - name: Build UncivServer.jar @@ -231,6 +237,16 @@ jobs: with: name: UncivJar + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '11' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.3.3 + - name: Upload to itch.io continue-on-error: true if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')