ArtemSBulgakov / buildozer-action

GitHub Action to build your Python application with Buildozer
MIT License
75 stars 70 forks source link

Workflow error "No jobs defined in jobs" #7

Closed richierh closed 3 years ago

richierh commented 3 years ago

I use

name: Build
on: [push, pull_request]

jobs:
# Build job. Builds app for Android with Buildozer
build-android:
  name: Build for Android
  runs-on: ubuntu-latest

  steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Build with Buildozer
      uses: ArtemSBulgakov/buildozer-action@v1
      id: buildozer
      with:
        #workdir: .
        buildozer_version: stable

    - name: Upload artifacts
      uses: actions/upload-artifact@v2
      with:
        name: package
        path: ${{ steps.buildozer.outputs.filename }}

but not working , when I clicked Actions it goes Failure

ArtemSBulgakov commented 3 years ago

Hi, @richierh

I think you missed indentation. Try to add two spaces before all lines after

jobs:
richierh commented 3 years ago

like what ? I don't get it?

ArtemSBulgakov commented 3 years ago

It should work:

name: Build
on: [push, pull_request]

jobs:
  # Build job. Builds app for Android with Buildozer
  build-android:
    name: Build for Android
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Build with Buildozer
        uses: ArtemSBulgakov/buildozer-action@v1
        id: buildozer
        with:
          #workdir: .
          buildozer_version: stable

      - name: Upload artifacts
        uses: actions/upload-artifact@v2
        with:
          name: package
          path: ${{ steps.buildozer.outputs.filename }}
richierh commented 3 years ago

Ok Ill tried now

richierh commented 3 years ago

where does the artifact of apk located? how can I download it?

ArtemSBulgakov commented 3 years ago

@richierh On the Run page at the bottom. For your last Run the URL will be: https://github.com/richierh/KivyPos/actions/runs/487585303