From 56672d58e9f581e250c50fd264815398bad95729 Mon Sep 17 00:00:00 2001 From: Valentinas <31697821+valentk777@users.noreply.github.com> Date: Mon, 25 Mar 2024 08:23:31 +0200 Subject: [PATCH] add more files --- .github/workflows/main.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6762082..f699dff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,10 @@ jobs: - name: Get the current version of the product id: package-version uses: martinbeentjes/npm-get-version-action@v1.3.1 + + - name: List current version + run: | + echo Product version: ${{ steps.package-version.outputs.current-version }} build-android: runs-on: ubuntu-latest @@ -84,13 +88,13 @@ jobs: # chmod +x ./gradlew # ./gradlew signingReport - - name: List versions - run: | - cd android - chmod +x ./gradlew - ./gradlew -version - echo Product version: ${{ needs.version.outputs.current-version }} - node --version + # - name: List versions + # run: | + # cd android + # chmod +x ./gradlew + # ./gradlew -version + # echo Product version: ${{ needs.version.outputs.current-version }} + # node --version - name: Build signed Android release env: @@ -112,20 +116,27 @@ jobs: update-google-play-console: runs-on: ubuntu-latest needs: [ "version", "build-android"] + permissions: read-all steps: - uses: actions/download-artifact@v4 with: name: ${{ needs.version.outputs.project-name }} - # path: build/ + github-token: ${{ secrets.GITHUB_TOKEN }} + path: build/ - name: Display structure of downloaded files - run: ls -R + run: | + ls + cd build + ls + cd ${{ needs.version.outputs.project-name }} + ls - name: Upload App to Google Play uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} packageName: com.baitupasaulis.seabattlepaper - releaseFiles: /${{ needs.version.outputs.project-name }}/app-release.aab + releaseFiles: build/${{ needs.version.outputs.project-name }}/app-release.aab track: production status: completed \ No newline at end of file