Skip to content

Commit

Permalink
GA
Browse files Browse the repository at this point in the history
  • Loading branch information
quocbao238 committed Jun 4, 2023
1 parent 161c78c commit 0401cc1
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 90 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
#name: Android Release
#
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
#
#jobs:
# build:
# runs-on: ubuntu-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 apk --release
#
# - name: Upload a Build Artifact
# uses: actions/upload-artifact@v2
# with:
# name: Android - Release
# path: example/build/app/outputs/apk/release/app-release.apk
#
name: Android Release

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

jobs:
build:
runs-on: ubuntu-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 apk --release

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: Android - Release
path: example/build/app/outputs/apk/release/app-release.apk

94 changes: 47 additions & 47 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
## Support build dmg macos
#name: Macos Release
#
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
#
#jobs:
# build:
# runs-on: macos-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 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/installers/dmg_creator/flutter_m3.dmg
# Support build dmg macos
name: Macos Release

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

jobs:
build:
runs-on: macos-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 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/installers/dmg_creator/flutter_m3.dmg
2 changes: 1 addition & 1 deletion .github/workflows/window_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Window - Release
path: mv example/build/windows/runner/Release/example.exe
path: example/build/windows/runner/Release/example.exe
1 change: 0 additions & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0401cc1

Please sign in to comment.