mirror of
https://github.com/ArtemSBulgakov/buildozer-action.git
synced 2024-08-16 10:09:52 +02:00
Update build-master-buildozer.yml
This commit is contained in:
parent
a7385f0bf5
commit
8992273785
1 changed files with 5 additions and 36 deletions
41
.github/workflows/build-master-buildozer.yml
vendored
41
.github/workflows/build-master-buildozer.yml
vendored
|
@ -1,56 +1,25 @@
|
||||||
name: Build (with Buildozer master)
|
name: Build
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches-ignore:
|
|
||||||
- data
|
|
||||||
- gh-pages
|
|
||||||
tags:
|
|
||||||
- '**'
|
|
||||||
pull_request:
|
|
||||||
branches-ignore:
|
|
||||||
- data
|
|
||||||
- gh-pages
|
|
||||||
schedule:
|
|
||||||
- cron: 0 0 */4 * * # at 00:00 UTC every fourth day
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Build job. Builds app for Android with Buildozer
|
# Build job. Builds app for Android with Buildozer
|
||||||
build-android:
|
build-android:
|
||||||
name: Build for Android (with Buildozer master)
|
name: Build for Android
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
path: master
|
|
||||||
|
|
||||||
- name: Build with Buildozer
|
- name: Build with Buildozer
|
||||||
uses: ./master # REPLACE WITH ArtemSBulgakov/buildozer-action@v1
|
uses: ArtemSBulgakov/buildozer-action@v1
|
||||||
id: buildozer
|
id: buildozer
|
||||||
with:
|
with:
|
||||||
repository_root: master
|
|
||||||
workdir: test_app
|
workdir: test_app
|
||||||
buildozer_version: master
|
buildozer_version: stable
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: package
|
name: package
|
||||||
path: ${{ steps.buildozer.outputs.filename }}
|
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-with-master
|
|
||||||
|
|
Loading…
Reference in a new issue