Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Unified product naming format
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpXada committed Apr 7, 2024
1 parent 73b36c9 commit 71e8441
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/strato-android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ jobs:
cd ${{ github.workspace }}/strato
chmod +x ./gradlew
./gradlew --no-daemon --stacktrace --build-cache --parallel --configure-on-demand assemble${{ github.event.inputs.flavor || 'mainline' }}Release
mv $(find app/build/outputs/apk -type f | grep -E "\.apk$") ${{ github.workspace }}/strato-${{ github.event.inputs.flavor || 'mainline' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
mv $(find app/build/outputs/apk -type f | grep -E "\.apk$") ${{ github.workspace }}/strato-android-${{ github.event.inputs.flavor || 'mainline' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
ccache -sv
- name: Release Strato Android (Strato-Android)
uses: softprops/action-gh-release@v2
with:
name: Strato Android ${{ steps.version.outputs.date }}
tag_name: strato-android
files: ${{ github.workspace }}/strato-${{ github.event.inputs.flavor || 'mainline' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
files: ${{ github.workspace }}/strato-android-${{ github.event.inputs.flavor || 'mainline' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk

- name: Release Strato Android ${{ steps.version.outputs.date }}
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.version.outputs.date }}
tag_name: ${{ steps.version.outputs.date }}
files: ${{ github.workspace }}/strato-${{ github.event.inputs.flavor || 'mainline' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
files: ${{ github.workspace }}/strato-android-${{ github.event.inputs.flavor || 'mainline' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
6 changes: 3 additions & 3 deletions .github/workflows/sudachi-android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ jobs:
chmod +x ./gradlew
./gradlew "assembleMainlineRelease"
# bash gradlew build
mv $(find app/build/outputs/apk -type f | grep -E "\.apk$") ${{ github.workspace }}/sudachi-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
mv $(find app/build/outputs/apk -type f | grep -E "\.apk$") ${{ github.workspace }}/sudachi-android-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
ccache -sv
- name: Release Sudachi (Sudachi-Android)
uses: softprops/action-gh-release@v2
with:
name: Sudachi Android ${{ steps.version.outputs.date }}
tag_name: sudachi-android
files: ${{ github.workspace }}/sudachi-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
files: ${{ github.workspace }}/sudachi-android-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk

- name: Release Sudachi ${{ steps.version.outputs.date }}
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.version.outputs.date }}
tag_name: ${{ steps.version.outputs.date }}
files: ${{ github.workspace }}/sudachi-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
files: ${{ github.workspace }}/sudachi-android-${{ github.event.inputs.flavor || 'ea' }}-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
6 changes: 3 additions & 3 deletions .github/workflows/suyu-android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ jobs:
cd ${{ github.workspace }}/suyu/src/android
chmod +x ./gradlew
./gradlew "assembleMainlineRelease"
mv app/build/outputs/apk/mainline/release/app-mainline-release.apk ${{ github.workspace }}/suyu-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
mv app/build/outputs/apk/mainline/release/app-mainline-release.apk ${{ github.workspace }}/suyu-android-mainline-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
ccache -sv
- name: Release Suyu Android (Suyu-Android)
uses: softprops/action-gh-release@v2
with:
name: Suyu Android ${{ steps.version.outputs.date }}
tag_name: suyu-android
files: ${{ github.workspace }}/suyu-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
files: ${{ github.workspace }}/suyu-android-mainline-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk

- name: Release Suyu Android ${{ steps.version.outputs.date }}
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.version.outputs.date }}
tag_name: ${{ steps.version.outputs.date }}
files: ${{ github.workspace }}/suyu-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
files: ${{ github.workspace }}/suyu-android-mainline-${{ steps.version.outputs.date }}-${{ steps.version.outputs.version }}.apk
10 changes: 2 additions & 8 deletions script/upload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
param($BUILD_NAME, $BUILD_DATE, $BUILD_TAG)
Set-Location $env:GITHUB_WORKSPACE\suyu

if ("$BUILD_NAME" -eq "mainline") {
$RELEASE_DIST = "suyu-windows-msvc"
}
else {
$RELEASE_DIST = "suyu-windows-msvc-$BUILD_NAME"
}

$MSVC_BUILD_ZIP = "suyu-windows-msvc-$BUILD_DATE-$BUILD_TAG.zip" -replace " ", ""
$RELEASE_DIST = "suyu-windows-$BUILD_NAME"
$MSVC_BUILD_ZIP = "suyu-windows-$BUILD_DATE-$BUILD_TAG.zip" -replace " ", ""
$env:BUILD_ZIP = $MSVC_BUILD_ZIP

if (Test-Path -Path ".\build\bin\Release") {
Expand Down

0 comments on commit 71e8441

Please sign in to comment.