123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: Test Build
- on:
- workflow_dispatch:
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/setup-node@v4 # Use the latest version of setup-node
- with:
- node-version: 16 # Explicitly set Node.js
- - uses: actions/checkout@v2
- - name: Set up JDK and Gradle
- uses: actions/setup-java@v2
- with:
- java-version: '11'
- distribution: 'adopt'
- - name: Release
- run: |
- signingConfigs='ICAgIHNpZ25pbmdDb25maWdzIHtcCiAgICAgICAgaWYgKHByb2plY3QuaGFzUHJvcGVydHkoIlJFTEVBU0VfU1RPUkVfRklMRSIpKSB7XAogICAgICAgICAgICBteUNvbmZpZyB7XAogICAgICAgICAgICAgICAgc3RvcmVGaWxlIGZpbGUoUkVMRUFTRV9TVE9SRV9GSUxFKVwKICAgICAgICAgICAgICAgIHN0b3JlUGFzc3dvcmQgUkVMRUFTRV9TVE9SRV9QQVNTV09SRFwKICAgICAgICAgICAgICAgIGtleUFsaWFzIFJFTEVBU0VfS0VZX0FMSUFTXAogICAgICAgICAgICAgICAga2V5UGFzc3dvcmQgUkVMRUFTRV9LRVlfUEFTU1dPUkRcCiAgICAgICAgICAgICAgICB2MVNpZ25pbmdFbmFibGVkIHRydWVcCiAgICAgICAgICAgICAgICB2MlNpZ25pbmdFbmFibGVkIHRydWVcCiAgICAgICAgICAgICAgICBlbmFibGVWM1NpZ25pbmcgPSB0cnVlXAogICAgICAgICAgICAgICAgZW5hYmxlVjRTaWduaW5nID0gdHJ1ZVwKICAgICAgICAgICAgfVwKICAgICAgICB9XAogICAgfVwKXA=='
- signingConfig='ICAgICAgICAgICAgaWYgKHByb2plY3QuaGFzUHJvcGVydHkoIlJFTEVBU0VfU1RPUkVfRklMRSIpKSB7XAogICAgICAgICAgICAgICAgc2lnbmluZ0NvbmZpZyBzaWduaW5nQ29uZmlncy5teUNvbmZpZ1wKICAgICAgICAgICAgfVwK'
- signingConfigs="$(echo "$signingConfigs" |base64 -d )"
- signingConfig="$(echo "$signingConfig" |base64 -d )"
- sed /build.gradle
- cp -f ${{ github.workspace }}//workflows//TVBoxOSC.jks
- sed -i ./
- sed /gradle.properties
- sed -i ./
- sed /gradle.properties
- - name: Build With Gradle
- run: |
- chmod +x gradlew
- ./
- - name: Prepare
- run: |
- mkdir /apk/
- find /apk/;
- - name: Upload App To Artifact
- uses: actions/upload-artifact@v2
- with:
- name: com.fongmi.android.tv
- path: ${{ github.workspace }}/apk
|