Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Use GitHub's Release feature to publish apk file
Browse files Browse the repository at this point in the history
  • Loading branch information
private-yusuke committed Feb 28, 2021
1 parent 7eda368 commit e68ce28
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Android CI
on:
push:
branches:
- main # mainブランチへのマージを契機にビルドする
- main # main ブランチへのマージを契機にビルドする

jobs:
build:
Expand All @@ -27,8 +27,19 @@ jobs:
run: ./gradlew testDebug
- name: Build with Gradle
run: ./gradlew assembleDebug
# - name: Upload apk file
# uses: actions/upload-artifact@v1
# with:
# name: apk
# path: app/build/outputs/apk/debug/app-debug.apk

- name: Upload apk file
uses: actions/upload-artifact@v1
uses: "marvinpinto/action-automatic-releases@latest"
with:
name: apk
path: app/build/outputs/apk/debug/app-debug.apk
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
LICENSE
app/build/outputs/apk/debug/app-debug.apk

0 comments on commit e68ce28

Please sign in to comment.