From 90ef5d4504a32c22367a3378ce80471271df30c3 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Thu, 24 Dec 2020 21:06:29 +0300 Subject: [PATCH] Do not try to push on pull request --- .github/workflows/build-master-buildozer.yml | 7 +++++++ .github/workflows/build.yml | 7 +++++++ README.md | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/.github/workflows/build-master-buildozer.yml b/.github/workflows/build-master-buildozer.yml index d2e096e..221fc0a 100644 --- a/.github/workflows/build-master-buildozer.yml +++ b/.github/workflows/build-master-buildozer.yml @@ -33,6 +33,12 @@ jobs: workdir: test_app buildozer_version: master + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: package + path: ${{ steps.buildozer.outputs.filename }} + - name: Checkout uses: actions/checkout@v2 with: @@ -46,4 +52,5 @@ jobs: 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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7e1332..c8383d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,12 @@ jobs: 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: @@ -44,4 +50,5 @@ jobs: 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 diff --git a/README.md b/README.md index a736dbe..e391782 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,12 @@ build-android: 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: @@ -94,6 +100,7 @@ build-android: 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 ``` @@ -241,6 +248,7 @@ add this to your workflow: 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 ```