mirror of
https://github.com/ArtemSBulgakov/buildozer-action.git
synced 2024-08-16 10:09:52 +02:00
Move uploading binaries to branch to <details>
This commit is contained in:
parent
02f38ec378
commit
cb11b8d680
1 changed files with 52 additions and 50 deletions
74
README.md
74
README.md
|
@ -154,13 +154,46 @@ git push origin data
|
|||
|
||||
## Full workflow
|
||||
|
||||
Builds app and uploads to the `data` branch. Also copy
|
||||
[.ci/move_binary.py](.ci/move_binary.py) script and create `data` branch as
|
||||
described above.
|
||||
Full workflow with uploading binaries as artifact.
|
||||
|
||||
```yaml
|
||||
name: Build
|
||||
on:
|
||||
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: test_app
|
||||
buildozer_version: stable
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: package
|
||||
path: ${{ steps.buildozer.outputs.filename }}
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Full workflow with uploading binaries to branch</summary>
|
||||
|
||||
Builds app and uploads to the `data` branch. Also copy
|
||||
[.ci/move_binary.py](.ci/move_binary.py) script and create `data` branch as
|
||||
described above.
|
||||
|
||||
```yaml
|
||||
name: Build
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- data
|
||||
|
@ -172,7 +205,7 @@ on:
|
|||
- data
|
||||
- gh-pages
|
||||
|
||||
jobs:
|
||||
jobs:
|
||||
# Build job. Builds app for Android with Buildozer
|
||||
build-android:
|
||||
name: Build for Android
|
||||
|
@ -206,37 +239,6 @@ jobs:
|
|||
|
||||
- name: Push binary to data branch
|
||||
run: python master/.ci/move_binary.py "${{ steps.buildozer.outputs.filename }}" master data
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Full workflow with uploading binaries as artifact</summary>
|
||||
|
||||
```yaml
|
||||
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: test_app
|
||||
buildozer_version: stable
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: package
|
||||
path: ${{ steps.buildozer.outputs.filename }}
|
||||
```
|
||||
</details>
|
||||
|
||||
|
|
Loading…
Reference in a new issue