mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
add Android .apk to release from GitHub Action
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b0228b51ed
commit
cc5a5a22bd
2 changed files with 22 additions and 1 deletions
22
.github/workflows/android.yml
vendored
22
.github/workflows/android.yml
vendored
|
@ -3,6 +3,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
- github-action-test
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
@ -17,7 +18,17 @@ jobs:
|
|||
- name: checkout sources
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: create release name
|
||||
id: tag
|
||||
run: |
|
||||
export tag=""
|
||||
export is_latest=false
|
||||
if [ "${{ github.ref_type }}" = "tag" ] ; then tag="${{ github.ref_name }}" ; else tag="latest"; is_latest=true ; fi
|
||||
echo "tag=${tag}" >> $GITHUB_OUTPUT
|
||||
echo "is_latest=${is_latest}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: run build
|
||||
id: build
|
||||
env:
|
||||
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
||||
run: |
|
||||
|
@ -40,4 +51,15 @@ jobs:
|
|||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
||||
bash -x ./subsurface/packaging/android/qmake-build.sh
|
||||
artifacts=$(find $(pwd) -name \*.apk)
|
||||
echo "artifacts=$artifacts" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: upload binaries
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ steps.tag.outputs.tag }}
|
||||
prerelease: ${{ steps.tag.outputs.is_latest }}
|
||||
body: CICD release artifact
|
||||
fail_on_unmatched_files: false
|
||||
files: |
|
||||
${{ steps.build.ouputs.artifacts }}
|
||||
|
|
1
.github/workflows/ubuntu-launchpad-build.yml
vendored
1
.github/workflows/ubuntu-launchpad-build.yml
vendored
|
@ -3,7 +3,6 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
- github-action-test
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
|
Loading…
Reference in a new issue