-
Notifications
You must be signed in to change notification settings - Fork 0
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
250aa58
commit 1563c07
Showing
5 changed files
with
50 additions
and
53 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 |
---|---|---|
|
@@ -5,52 +5,47 @@ on: | |
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
build_ios: | ||
permissions: write-all | ||
name: Build Flutter (iOS) | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '17.x' | ||
java-package: jdk | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
- run: flutter pub get | ||
- run: flutter clean | ||
- run: flutter build ios --release --no-codesign | ||
- name: Create iPA | ||
run: | | ||
cd build/ios/iphoneos/ && mkdir -p Payload && | ||
mv Runner.app Payload/ && zip -r app.ipa Payload && ls | ||
- name: Upload iPA | ||
uses: ncipollo/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
generateReleaseNotes: true | ||
name: Catsuka ${{ github.ref_name }} | ||
tag: ${{ github.ref_name }} | ||
artifacts: build/ios/iphoneos/*.ipa | ||
replacesArtifacts: true | ||
allowUpdates: true | ||
jobs: | ||
build_apk: | ||
permissions: write-all | ||
name: Build Flutter (Android) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17.x' | ||
java-package: jdk | ||
- uses: subosito/flutter-action@v1 | ||
java-version: '21' | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Create the Keystore | ||
env: | ||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | ||
run: | | ||
# import keystore from secrets | ||
echo $KEYSTORE_BASE64 | base64 -d > $RUNNER_TEMP/key.keystore | ||
- name: Get dependencies | ||
run: flutter pub get | ||
|
||
- name: Build Android App Bundle | ||
run: flutter build apk --release --split-per-abi | ||
|
||
- name: Sign app APK | ||
id: sign_app | ||
uses: ilharp/sign-android-release@nightly | ||
with: | ||
channel: 'stable' | ||
- run: flutter pub get | ||
- run: flutter build apk --release --split-per-abi | ||
releaseDir: build/app/outputs/apk/release | ||
signingKey: ${{ secrets.SIGNING_KEY }} | ||
keyAlias: ${{ secrets.ALIAS }} | ||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
|
||
- name: Upload APK | ||
uses: ncipollo/[email protected] | ||
with: | ||
|
@@ -60,4 +55,4 @@ jobs: | |
tag: ${{ github.ref_name }} | ||
artifacts: build/app/outputs/apk/release/*.apk | ||
replacesArtifacts: true | ||
allowUpdates: true | ||
allowUpdates: true |
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
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
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
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