Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
Create workflow to build andriod app using Kivy buildozer
  • Loading branch information
novicejava1 authored Jul 29, 2023
1 parent 22bfd65 commit 912eb46
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build
on:
push:
branches-ignore:
- data
- gh-pages
tags:
- '**'
pull_request:
branches-ignore:
- data
- gh-pages

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
with:
path: master

- name: Build with Buildozer
uses: ArtemSBulgakov/buildozer-action@v1
id: buildozer
with:
repository_root: master
workdir: test_app
buildozer_version: stable

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

- name: Checkout
uses: actions/checkout@v2
with:
path: data
ref: data # Branch name

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
architecture: x64

- name: Push binary to data branch
if: github.event_name == 'push'
run: python master/.ci/move_binary.py "${{ steps.buildozer.outputs.filename }}" master data bin

0 comments on commit 912eb46

Please sign in to comment.