Skip to content

Commit

Permalink
App Bundle もアップロード
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Feb 7, 2024
1 parent ce565fa commit 9d00769
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
permissions:
contents: write
steps:

Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
uses: mukunku/tag-exists-action@v1.5.0
if: github.event.inputs.release == 'true'
id: check-tag
with:
with:
tag: "${{ env.version }}"

- name: Release check
Expand Down Expand Up @@ -82,19 +82,22 @@ jobs:
export STORE_PASSWORD="${{ secrets.STORE_PASSWORD }}"
export KEY_ALIAS="${{ secrets.KEY_ALIAS }}"
export KEY_PASSWORD="${{ secrets.KEY_PASSWORD }}"
./gradlew aR --no-daemon
./gradlew aR
./gradlew bR
cp -f app/build/outputs/apk/release/app-release.apk ${{ env.repo }}-${{ env.version }}.apk
cp -f app/build/outputs/bundle/release/app-release.aab ${{ env.repo }}-${{ env.version }}.aab
else
./gradlew asD --no-daemon
./gradlew asD
./gradlew bunD
cp -f app/build/outputs/apk/debug/app-debug.apk ${{ env.repo }}-${{ env.version }}@${{ env.commit }}.apk
cp -f app/build/outputs/bundle/debug/app-debug.aab ${{ env.repo }}-${{ env.version }}@${{ env.commit }}.aab
fi
- name: Upload APK
uses: actions/upload-artifact@v4
if: github.event.inputs.release != 'true'
with:
name: ${{ env.repo }}(${{ env.version }}@${{ env.commit }})
path: ${{ env.repo }}-${{ env.version }}@${{ env.commit }}.apk
path: ${{ env.repo }}-${{ env.version }}*.a*

- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -103,4 +106,4 @@ jobs:
tag_name: ${{ env.version }}
draft: true
prerelease: false
files: ${{ env.repo }}-${{ env.version }}.apk
files: ${{ env.repo }}-${{ env.version }}.apk

0 comments on commit 9d00769

Please # to comment.