Skip to content

Commit

Permalink
github-workflow: Add deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeborges authored and ortex committed Nov 18, 2021
1 parent b8e6c78 commit 5583daa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
tags:
- v*

pull_request:
branches:
Expand All @@ -30,3 +32,15 @@ jobs:

- name: Build
run: ./gradlew build

- name: Copy and rename binary
if: matrix.os == 'ubuntu-18.04' && startsWith(github.ref, 'refs/tags/')
run: cp app/build/outputs/apk/debug/app-debug.apk roc-droid.apk

- name: Release
uses: softprops/action-gh-release@v1
if: matrix.os == 'ubuntu-18.04' && startsWith(github.ref, 'refs/tags/')
with:
files: roc-droid.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5583daa

Please sign in to comment.