update main action
This commit is contained in:
parent
22e29670e7
commit
9e41b35a80
1 changed files with 11 additions and 2 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue