new: send release versions only to play market
add pre-release version
This commit is contained in:
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@@ -23,13 +23,13 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- platform: android
|
- platform: android-apk
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
targets: apk
|
targets: apk
|
||||||
|
|
||||||
# - platform: android-aab
|
- platform: android-aab
|
||||||
# os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
# targets: aab
|
targets: aab
|
||||||
|
|
||||||
- platform: windows
|
- platform: windows
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
@@ -124,6 +124,7 @@ jobs:
|
|||||||
make ${{ matrix.platform }}-libs
|
make ${{ matrix.platform }}-libs
|
||||||
|
|
||||||
- name: Setup Signing Properties
|
- name: Setup Signing Properties
|
||||||
|
if: startsWith(matrix.platform,'android')
|
||||||
env:
|
env:
|
||||||
ANDROID_SIGNING_KEY_ALIAS: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
|
ANDROID_SIGNING_KEY_ALIAS: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
|
||||||
ANDROID_SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
|
ANDROID_SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
|
||||||
@@ -161,8 +162,8 @@ jobs:
|
|||||||
xcopy /s /v D:\a\hiddify-next\hiddify-next\build\windows\runner\Release\ .\HiddifyNext-portable\
|
xcopy /s /v D:\a\hiddify-next\hiddify-next\build\windows\runner\Release\ .\HiddifyNext-portable\
|
||||||
Compress-Archive HiddifyNext-portable out\hiddify-${{ matrix.platform }}-x64-portable.zip
|
Compress-Archive HiddifyNext-portable out\hiddify-${{ matrix.platform }}-x64-portable.zip
|
||||||
|
|
||||||
- name: Copy to out Android
|
- name: Copy to out Android aab
|
||||||
if: matrix.platform == 'android'
|
if: matrix.platform == 'android-apk'
|
||||||
run: |
|
run: |
|
||||||
mkdir out
|
mkdir out
|
||||||
ls -R ./build/app/outputs
|
ls -R ./build/app/outputs
|
||||||
@@ -170,7 +171,13 @@ jobs:
|
|||||||
mv ./build/app/outputs/flutter-apk/*armeabi-v7a*.apk out/hiddify-android-arm7.apk || echo "no arm7 apk"
|
mv ./build/app/outputs/flutter-apk/*armeabi-v7a*.apk out/hiddify-android-arm7.apk || echo "no arm7 apk"
|
||||||
mv ./build/app/outputs/flutter-apk/*x86_64*.apk out/hiddify-android-x86_64.apk || echo "no x64 apk"
|
mv ./build/app/outputs/flutter-apk/*x86_64*.apk out/hiddify-android-x86_64.apk || echo "no x64 apk"
|
||||||
mv ./build/app/outputs/flutter-apk/app-release.apk out/hiddify-android-universal.apk || echo "no universal apk"
|
mv ./build/app/outputs/flutter-apk/app-release.apk out/hiddify-android-universal.apk || echo "no universal apk"
|
||||||
cp ./build/app/outputs/bundle/release/app-release.aab out/bundle.aab
|
|
||||||
|
- name: Copy to out Android aab
|
||||||
|
if: matrix.platform == 'android-apk'
|
||||||
|
run: |
|
||||||
|
mkdir out
|
||||||
|
ls -R ./build/app/outputs
|
||||||
|
cp ./build/app/outputs/bundle/release/app-release.aab out/hiddify-android-market.aab || echo "no aab"
|
||||||
|
|
||||||
- name: Copy to out unix
|
- name: Copy to out unix
|
||||||
if: matrix.platform == 'linux' || matrix.platform == 'macos' || matrix.platform == 'ios'
|
if: matrix.platform == 'linux' || matrix.platform == 'macos' || matrix.platform == 'ios'
|
||||||
@@ -194,19 +201,19 @@ jobs:
|
|||||||
path: ./out
|
path: ./out
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
|
||||||
# - name: Create service_account.json
|
- name: Create service_account.json
|
||||||
# if: matrix.platform == 'android'
|
if: matrix.platform == 'android-aab' && github.ref_type=='tag'
|
||||||
# run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json
|
run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json
|
||||||
|
|
||||||
# - name: Deploy to Internal Testers
|
- name: Deploy to Internal Testers
|
||||||
# if: matrix.platform == 'android'
|
if: matrix.platform == 'android-aab' && github.ref_type=='tag'
|
||||||
# uses: r0adkll/upload-google-play@v1
|
uses: r0adkll/upload-google-play@v1
|
||||||
# with:
|
with:
|
||||||
# serviceAccountJson: service_account.json
|
serviceAccountJson: service_account.json
|
||||||
# packageName: app.hiddify.com
|
packageName: app.hiddify.com
|
||||||
# releaseName: ${{ github.ref }}
|
releaseName: ${{ github.ref }}
|
||||||
# releaseFiles: ./build/app/outputs/bundle/release/app-release.aab
|
releaseFiles: ./build/app/outputs/bundle/release/hiddify-android-market.aab
|
||||||
# track: internal
|
track: internal
|
||||||
|
|
||||||
upload-prerelease:
|
upload-prerelease:
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
@@ -263,5 +270,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
prerelease: ${{ contains(github.ref_name,'dev') }}
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ github.ref_name }}
|
||||||
files: ./out/*
|
files: ./out/*
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -31,7 +31,7 @@ gen:
|
|||||||
translate:
|
translate:
|
||||||
dart run slang
|
dart run slang
|
||||||
|
|
||||||
android-release: android-aab-release android-apk-release
|
android-release: android-apk-release
|
||||||
|
|
||||||
android-apk-release:
|
android-apk-release:
|
||||||
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET)
|
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET)
|
||||||
|
|||||||
Reference in New Issue
Block a user