Update main.yml

This commit is contained in:
Moritz Weber 2022-10-03 14:15:12 +02:00 committed by GitHub
parent b37a23684e
commit bbb0c02872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ name: Build
# Controls when the action will run. Triggers the workflow on push or pull request # Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch # events but only for the master branch
on: [push, pull_request] on: [push, pull_request, workflow_dispatch]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
@ -32,6 +32,6 @@ jobs:
- run: flutter build apk --flavor prod - run: flutter build apk --flavor prod
- name: Github Release - name: Github Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags') # if: startsWith(github.ref, 'refs/tags')
with: with:
files: build/app/outputs/flutter-apk/app-prod-release.apk files: src/build/app/outputs/flutter-apk/app-prod-release.apk