Skip to content

Commit

Permalink
Update and rename upload_release.yml to upload_released.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamarine5 authored Aug 27, 2023
1 parent 752df21 commit 06a320c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Android Upload Release CI

on:
release:
types: [created]
types: [released]


jobs:
Expand All @@ -23,7 +23,10 @@ jobs:
run: chmod +x gradlew
- name: Build apk file with Gradle
run: ./gradlew assembleDebug
- name: Get version code
id: version
run: echo "VERSION=${GITHUB_REF:10}" >> $GITHUB_OUTPUT
- name: Upload apk file
run: gh release upload ${{ github.ref }} app/build/outputs/apk/debug/app-debug.apk
run: gh release upload ${{steps.version.outputs.VERSION}} app/build/outputs/apk/debug/app-debug.apk
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 06a320c

Please sign in to comment.