Giter Club home page Giter Club logo

Comments (3)

wamaeb avatar wamaeb commented on July 21, 2024 4

Thank you @mateuszkwiecinski, that was the issue, I used upload action and voila, it worked.

from firebase-distribution-github-action.

mateuszkwiecinski avatar mateuszkwiecinski commented on July 21, 2024 2

That's just a guess but doesn't the

- uses: actions/checkout@v2 #This uploads artifacts from your workflow

override your output file as it tries to check out app-debug.apk file as git repository? Are you sure you want to check out the repository, not to upload artifact as the comment suggests using actions/upload-artifact action?

Can you try commenting uses: actions/checkout@v2 step and share run: ls build/app/outputs/flutter-apk output?

from firebase-distribution-github-action.

jmd9019 avatar jmd9019 commented on July 21, 2024

Hi @mateuszkwiecinski We are also getting the same error but on the Ionic project. Can you help??

name: Build Android

on: [push, pull_request]

jobs:
  build:
    name: Build APK
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8

      - name: Setup Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 14.x
      - name: Install Capacitor
        run: npm install @capacitor/core

      - name: Install Ionic
        run: npm install -g @ionic/cli

      - name: Install app dependencies
        run: npm install

      - name: Add Android platform
        run: |
          ionic capacitor add android
          ls

      - name: Build Android Dev APK
        run: ionic capacitor build android

      - name: Sync dependencies
        run: npx capacitor sync

      - name: Update plugins
        run: npx jetify

      - name: Build Android Release APK
        run: ionic capacitor build android --release --prod

      - name: Make gradlew executable
        run: chmod +x ./gradlew
      - name: Generate the Android Apk
        working-directory: ./android/
        run: |
          ./gradlew assembleRelease
          cd app/build/outputs/apk/release
          ls
      - name: upload artifact to Firebase App Distribution
        uses: wzieba/Firebase-Distribution-Github-Action@v1
        with:
          appId: ${{secrets.FIREBASE_APP_ID}}
          token: ${{secrets.FIREBASE_TOKEN}}
          groups: via-driver-app
          file: app/build/outputs/apk/release/app-release-unsigned.apk 

Screenshot (83)

from firebase-distribution-github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.