Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
github build apk on release.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 24, 2022
1 parent 45e0638 commit 94a0b44
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/always.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ name: build dev apk
on:
push:
jobs:
build-gradle-project:
build-debug-apk:
runs-on: ubuntu-latest
steps:
- name: checkout project sources
uses: actions/checkout@v3
with:
lfs: true
- name: setup gradle
uses: gradle/gradle-build-action@v2
- run: ./gradlew assembleDebug
- uses: actions/upload-artifact@v3
with:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build and release apk
on:
push:
tags:
- '*'
jobs:
make-release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build-release-apk:
runs-on: ubuntu-latest
steps:
- name: checkout project sources
uses: actions/checkout@v3
with:
lfs: true
- run: ./gradlew assembleRelease
- uses: AButler/upload-release-assets@v2.0
with:
files: app/build/outputs/apk/release/*.apk
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}

0 comments on commit 94a0b44

Please sign in to comment.