From 457f2b2e695b2c50d484d279dc501658f7dbd6c7 Mon Sep 17 00:00:00 2001 From: Ashutosh Mahapatra Date: Sun, 17 Sep 2023 12:47:45 +0530 Subject: [PATCH] Upload asset instead of release --- .github/workflows/build-app.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 5049064..9257438 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -10,7 +10,6 @@ env: jobs: build: - if: github.repository_owner!='am-ash-or-am-i' runs-on: ubuntu-latest defaults: run: @@ -21,17 +20,27 @@ jobs: with: distribution: 'zulu' java-version: '12.x' + - run: echo "test" > test.txt + - run: cat test.txt + - run: pwd - uses: subosito/flutter-action@v2 with: - channel: 'beta' + channel: 'stable' + - run: flutter --version - run: flutter pub get - run: flutter build apk - - name: Release APK - id: upload-release-asset - uses: softprops/action-gh-release@v1 + - uses: actions/upload-artifact@v1 with: - name: ${{env.APP_NAME}}-${{github.ref_name}}.apk - files: build/app/outputs/flutter-apk/app-release.apk - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + name: release-apk + path: app/jal_dristi_app/build/app/outputs/apk/release/app-release.apk + + # Release APK not working + # - name: Release APK + # id: upload-release-asset + # uses: softprops/action-gh-release@v1 + # with: + # name: ${{env.APP_NAME}}-${{github.ref_name}}.apk + # files: app/jal_dristi_app/build/app/outputs/apk/release/app-release.apk + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}