-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
161c78c
commit 0401cc1
Showing
4 changed files
with
89 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.