Skip to content

Commit

Permalink
+ Upload macos
Browse files Browse the repository at this point in the history
  • Loading branch information
quocbao238 committed Jun 2, 2023
1 parent 607f066 commit bd7749f
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 120 deletions.
113 changes: 0 additions & 113 deletions .github/workflows/.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ "main" ]

jobs:
build:
Android Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [ "main" ]

jobs:
build:
Macos Release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -34,8 +34,14 @@ jobs:
working-directory: example
run: flutter build macos --release


- name: Install app-dmg & Create dmg file
working-directory: example
run: npm install -g appdmg && appdmg installers/dmg_creator/config.json installers/dmg_creator/flutter_m3.dmg


- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: Macos - Release
path: example/build/outputs/macos/Release/example.dmg
path: example/installers/dmg_creator/flutter_m3.dmg
41 changes: 41 additions & 0 deletions .github/workflows/window_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Support build window
name: Window Release

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
Window Release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
cache: 'gradle'

- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.2"
channel: 'stable'
cache: true
- name: Get dependencies
run: flutter --disable-telemetry && flutter pub get && flutter doctor || true

- name: Get dependencies example app
working-directory: example
run: flutter pub get

- name: Start release build
working-directory: example
run: flutter build windows --release

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: Window - Release
path: example/build/outputs/windows/Release/example.exe
2 changes: 1 addition & 1 deletion example/installers/dmg_creator/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "FlutterM3Core App",
"title": "Flutter M3 App",
"icon": "../../assets/flutter_m3_core.icns",
"contents": [
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" },
Expand Down

0 comments on commit bd7749f

Please sign in to comment.