Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
小滋润 committed Sep 11, 2024
1 parent 3a2a98d commit 8e0c373
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/APK_build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Flutter APK Build and Release

on:
push:
branches:
- develop_apk
tags:
- 'v*.*.*'

jobs:
build:
Expand All @@ -29,15 +29,16 @@ jobs:

- name: Build APK
run: flutter build apk --release --dart-define=config.server.network.host=${{ vars.SERVER_HOST }} --dart-define=config.server.network.port=${{ vars.SERVER_PORT }}
- name: Upload APK to Release
uses: actions/upload-release-asset@v1
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/app/outputs/flutter-apk/app-release.apk
asset_name: app-release.apk
asset_content_type: application/vnd.android.package-archive
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
- name: Upload APK
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 8e0c373

Please sign in to comment.