Skip to content

Commit

Permalink
update ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
mazj committed Jan 23, 2024
1 parent 754ab13 commit 37527e8
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: 'APK Release'

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
push:
tags:
- "v*"

jobs:
build:
Expand Down Expand Up @@ -41,9 +40,18 @@ jobs:
# Use the "id" property to give the step a unique identifier.
# Use the "::set-output" command to set the value of the "built-apk" output variable.

- name: 'Upload APK'
uses: 'actions/upload-artifact@v2'
# - name: 'Upload APK'
# uses: 'actions/upload-artifact@v2'
# with:
# name: 'Built APK'
# path: '${{ steps.build.outputs.built-apk }}'


- name: 'Release'
uses: "marvinpinto/action-automatic-releases@latest"
with:
name: 'Built APK'
path: '${{ steps.build.outputs.built-apk }}'
# Upload the built APK
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/app/outputs/flutter-apk/*.apk
build/app/outputs/flutter-apk/*.apk.sha1

0 comments on commit 37527e8

Please sign in to comment.