Skip to content

Commit

Permalink
Update app-prebuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 authored and GitHub Enterprise committed Feb 16, 2023
1 parent d970269 commit 23d80ef
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/app-prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
tags: [ "v*" ]
# pull_request:
# branches: [ "main" ]

Expand Down Expand Up @@ -48,9 +49,28 @@ jobs:
channel: 'stable' # or: 'beta', 'dev' or 'master'
cache: true


- run: flutter pub get
# - run: flutter test
- run: flutter build apk
- run: ls -la
- run: ls -la build
- name: list artifacts
run: |
ls -la
ls -la build/app/outputs/apk/release
- name: upload apk
uses: actions/upload-artifact@v3
with:
name: app-release.apk
path: build/app/outputs/apk/release/app-release.apk

- name: upload all artifacts
uses: actions/upload-artifact@v3
with:
name: all.zip
path: build/app/outputs/apk/release/

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/app/outputs/apk/release/app-release.apk

0 comments on commit 23d80ef

Please sign in to comment.