-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
4 changed files
with
102 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Create Release | ||
|
||
permissions: write-all | ||
|
||
on: | ||
release: | ||
types: [ published , prereleased ] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build-android-apk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
cache: true | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "zulu" | ||
java-version: "17" | ||
cache: gradle | ||
|
||
|
||
- run: flutter --version | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Perform Code Generation | ||
run: flutter pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Generate SplashScreen | ||
run: flutter pub run flutter_native_splash:create | ||
|
||
- name: Generate Launcher Icons | ||
run: flutter pub run flutter_launcher_icons -f flutter_launcher_icons.yaml | ||
|
||
- name: Decode Release Key | ||
run: | | ||
echo "$TUBESYNC_JKS" > tubesync.b64 | ||
base64 --decode tubesync.b64 > tubesync.jks | ||
env: | ||
TUBESYNC_JKS: ${{ secrets.TUBESYNC_JKS }} | ||
|
||
- name: Build Android Release | ||
run: flutter build apk --release | ||
env: | ||
TUBESYNC_KEY_PASSWORD: ${{ secrets.TUBESYNC_KEY_PASSWORD }} | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: build/app/outputs/flutter-apk/app-release.apk | ||
|
||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tubesync_android_release | ||
path: build/app/outputs/flutter-apk/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 |
---|---|---|
|
@@ -41,3 +41,5 @@ app.*.map.json | |
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
*.jks |
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