update main action

This commit is contained in:
Moritz Weber 2023-08-23 20:45:33 -04:00
parent 22e29670e7
commit 9e41b35a80

View file

@ -32,11 +32,20 @@ jobs:
with:
flutter-version: '3.10.5'
- run: flutter pub get
- run: flutter build apk --flavor github
- name: Upload a Build Artifact
- if: startsWith(github.ref, 'refs/tags')
run: flutter build apk --flavor github
- if: ${{ !startsWith(github.ref, 'refs/tags') }}
run: flutter build apk --profile --flavor dev
- name: Upload a Release Artifact
uses: actions/upload-artifact@v3.1.0
if: startsWith(github.ref, 'refs/tags')
with:
path: src/build/app/outputs/flutter-apk/app-github-release.apk
- name: Upload a Dev Artifact
uses: actions/upload-artifact@v3.1.0
if: ${{ !startsWith(github.ref, 'refs/tags') }}
with:
path: src/build/app/outputs/flutter-apk/app-dev-profile.apk
- name: Github Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags')