Setup first full beta test
This commit is contained in:
parent
d643b947a9
commit
a14e5a99d9
63
.github/workflows/android-debug.yml
vendored
63
.github/workflows/android-debug.yml
vendored
@ -1,50 +1,25 @@
|
|||||||
name: Android Master CI
|
name: Remote Dispatch Action Initiator
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
repository_dispatch:
|
||||||
- 'master'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
ping-pong:
|
||||||
apk:
|
runs-on: ubuntu-latest
|
||||||
name: Generate APK
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: PING - Dispatch initiating repository event
|
||||||
- name: set up JDK 1.8
|
if: github.event.action != 'pong'
|
||||||
uses: actions/setup-java@v1
|
run: |
|
||||||
with:
|
curl -X POST https://api.github.com/repos/jobobby04/TachiyomiSYPrieview/dispatches \
|
||||||
java-version: 1.8
|
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||||
- name: Get NDK
|
-u ${{ secrets.ACCESS_TOKEN }} \
|
||||||
run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
|
--data '{"event_type": "ping", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
|
||||||
- name: Write google-services.json
|
- name: ACK - Acknowledge pong from remote repository
|
||||||
uses: DamianReeves/write-file-action@v1.0
|
if: github.event.action == 'pong'
|
||||||
with:
|
run: |
|
||||||
# The path to the file to write
|
echo "PONG received from '${{ github.event.client_payload.repository }}'" && \
|
||||||
path: app/google-services.json
|
curl -X POST https://api.github.com/repos/jobobby04/TachiyomiSYPrieview/dispatches \
|
||||||
# The contents of the file
|
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||||
contents: ${{ secrets.GOOGLE_SERVICES_TEXT }}
|
-u ${{ secrets.ACCESS_TOKEN }} \
|
||||||
# The mode of writing to use: `overwrite`, `append`, or `preserve`.
|
--data '{"event_type": "ack", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
|
||||||
write-mode: overwrite # optional, default is preserve
|
|
||||||
- name: Build Release APK
|
|
||||||
run: bash ./gradlew assembleRelease --stacktrace
|
|
||||||
- name: Sign Android release
|
|
||||||
uses: r0adkll/sign-android-release@v1
|
|
||||||
with:
|
|
||||||
# The directory to find your release to sign
|
|
||||||
releaseDirectory: app/build/outputs/apk/standard/release
|
|
||||||
# The key used to sign your release in base64 encoded format
|
|
||||||
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
|
||||||
# The key alias
|
|
||||||
alias: ${{ secrets.ALIAS }}
|
|
||||||
# The password to the keystore
|
|
||||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
||||||
# The password for the key
|
|
||||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
|
||||||
- name: Upload APK
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: TachiyomiSY-${{ github.sha }}
|
|
||||||
path: ${{ env.SIGNED_RELEASE_FILE }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user