Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Jul 12, 2024
1 parent a0a7f22 commit 84eb4cb
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 24 deletions.
71 changes: 47 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:

- name: Create Sekrets
run: |
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GITHUB_CLIENT_ID }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GITHUB_CLIENT_SECRET }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GH_CLIENT_ID }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GH_CLIENT_SECRET }};
./gradlew createSekretProperties -Pkey=FIREBASE_PROJECT -Pvalue=${{ secrets.FIREBASE_PROJECT }};
./gradlew createSekretProperties -Pkey=FIREBASE_APPLICATION -Pvalue=${{ secrets.FIREBASE_APPLICATION }};
./gradlew createSekretProperties -Pkey=FIREBASE_API_KEY -Pvalue=${{ secrets.FIREBASE_API_KEY }}
Expand All @@ -39,6 +39,10 @@ jobs:
- name: Copy Sekrets
run: ./gradlew composeApp:copySekretNativeBinary

- name: Build
continue-on-error: true
run: ./gradlew build

- name: Create package on Ubuntu
run: ./gradlew composeApp:packageDeb; ./gradlew composeApp:packageAppImage; ./gradlew composeApp:packageUberJarForCurrentOS

Expand Down Expand Up @@ -79,18 +83,18 @@ jobs:
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: Create Sekrets
run: |
gradle createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GITHUB_CLIENT_ID }};
gradle createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GITHUB_CLIENT_SECRET }};
gradle createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GH_CLIENT_ID }};
gradle createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GH_CLIENT_SECRET }};
gradle createSekretProperties -Pkey=FIREBASE_PROJECT -Pvalue=${{ secrets.FIREBASE_PROJECT }};
gradle createSekretProperties -Pkey=FIREBASE_APPLICATION -Pvalue=${{ secrets.FIREBASE_APPLICATION }};
gradle createSekretProperties -Pkey=FIREBASE_API_KEY -Pvalue=${{ secrets.FIREBASE_API_KEY }}
Expand All @@ -104,6 +108,11 @@ jobs:
run: gradle composeApp:copySekretNativeBinary
working-directory: ${{ github.workspace }}

- name: Build
continue-on-error: true
run: gradle build
working-directory: ${{ github.workspace }}

- name: Package
run: gradle composeApp:packageExe; gradle composeApp:packageMsi; gradle composeApp:packageUberJarForCurrentOS
working-directory: ${{ github.workspace }}
Expand All @@ -123,27 +132,34 @@ jobs:
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: Create Sekrets
run: |
./gradlew createSekretProperties -Pkey=MONGO_APPLICATION -Pvalue=${{ secrets.MONGO_APPLICATION }};
./gradlew createSekretProperties -Pkey=WRAP_API -Pvalue=${{ secrets.WRAP_API }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GH_CLIENT_ID }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GH_CLIENT_SECRET }};
./gradlew createSekretProperties -Pkey=FIREBASE_PROJECT -Pvalue=${{ secrets.FIREBASE_PROJECT }};
./gradlew createSekretProperties -Pkey=FIREBASE_APPLICATION -Pvalue=${{ secrets.FIREBASE_APPLICATION }};
./gradlew createSekretProperties -Pkey=FIREBASE_API_KEY -Pvalue=${{ secrets.FIREBASE_API_KEY }}
- name: Create native library
run: ./gradlew app:shared:createNativeLib
- name: Generate Sekret binary
run: ./gradlew composeApp:createSekretNativeBinary

- name: Copy Sekrets
run: ./gradlew composeApp:copySekretNativeBinary

- name: Build
continue-on-error: true
run: ./gradlew build

- name: Package
run: ./gradlew app:desktop:packageDmg; ./gradlew app:desktop:packageUberJarForCurrentOS
run: ./gradlew composeApp:packageDmg; ./gradlew composeApp:packageUberJarForCurrentOS

- name: Upload release packages
uses: softprops/action-gh-release@v1
Expand All @@ -159,36 +175,43 @@ jobs:
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: Create Sekrets
run: |
./gradlew createSekretProperties -Pkey=MONGO_APPLICATION -Pvalue=${{ secrets.MONGO_APPLICATION }};
./gradlew createSekretProperties -Pkey=WRAP_API -Pvalue=${{ secrets.WRAP_API }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GH_CLIENT_ID }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GH_CLIENT_SECRET }};
./gradlew createSekretProperties -Pkey=FIREBASE_PROJECT -Pvalue=${{ secrets.FIREBASE_PROJECT }};
./gradlew createSekretProperties -Pkey=FIREBASE_APPLICATION -Pvalue=${{ secrets.FIREBASE_APPLICATION }};
./gradlew createSekretProperties -Pkey=FIREBASE_API_KEY -Pvalue=${{ secrets.FIREBASE_API_KEY }}
- name: Create native library
run: ./gradlew app:shared:createNativeLib
- name: Generate Sekret binary
run: ./gradlew composeApp:createSekretNativeBinary

- name: Execute Build
run: ./gradlew app:android:assembleRelease && ./gradlew app:android:bundleRelease
- name: Copy Sekrets
run: ./gradlew composeApp:copySekretNativeBinary

- name: Build
continue-on-error: true
run: ./gradlew build

- name: Package
run: ./gradlew composeApp:assembleRelease && ./gradlew composeApp:bundleRelease

- name: Move APK file(s)
run: mv ./app/android/build/outputs/apk/release/*.apk ./app/android/release/
run: mv ./composeApp/build/outputs/apk/release/*.apk ./composeApp/release/

- name: Move AAB file(s)
run: mv ./app/android/build/outputs/bundle/release/*.aab ./app/android/release/
run: mv ./composeApp/build/outputs/bundle/release/*.aab ./composeApp/release/

- name: Remove "-unsigned" from filename(s)
run: for filename in ./app/android/release/*-unsigned*; do mv "./$filename" "./$(echo "$filename" | sed -e 's/-unsigned//g')"; done
run: for filename in ./composeApp/release/*-unsigned*; do mv "./$filename" "./$(echo "$filename" | sed -e 's/-unsigned//g')"; done

- uses: ilharp/sign-android-release@v1
id: sign_app
Expand Down
8 changes: 8 additions & 0 deletions composeApp/Burning-Series.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Burning-Series
Comment=Watch any series from Burning-Series using this app. This is an unofficial Burning-Series App
Exec=Burning-Series
Icon=Burning-Series
Terminal=false
Categories=Video;AudioVideo;

0 comments on commit 84eb4cb

Please sign in to comment.