Skip to content

Commit

Permalink
finalize android build
Browse files Browse the repository at this point in the history
  • Loading branch information
celuchmarek committed May 29, 2024
1 parent de56fe0 commit 667da71
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: Build and sign application

on:
push:
branches: ['feature/signing_key']
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"
# - "v[0-9]+.[0-9]+.[0-9]+([0-9]+)"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+([0-9]+)"

# workflow_dispatch:
# inputs:
# name:
# description: "Release-Build"
# default: "Generate release build"
workflow_dispatch:
inputs:
name:
description: "Release-Build"
default: "Generate release build"


permissions:
Expand Down Expand Up @@ -74,25 +73,19 @@ jobs:
working-directory: ./app
run: flutter build apk

- name: Get release file apk path
id: releaseApk
working-directory: ./app
run: echo "apkfile=$(find build/app/outputs/apk/release/*.apk)" >> $GITHUB_OUTPUT

- name: Upload Release Build to Artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: ${{ steps.releaseApk.outputs.apkfile }}

# - name: Create release if tag pushed
# uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
# if: startsWith(github.ref, 'refs/tags/')
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# draft: true
# prerelease: true
# files: |
# ./app/build/app/outputs/apk/release/app-release.apk
path: ./app/build/app/outputs/apk/release/app-release.apk

- name: Create release if tag pushed
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: true
files: |
./app/build/app/outputs/apk/release/app-release.apk

0 comments on commit 667da71

Please sign in to comment.