kopia lustrzana https://github.com/rt-bishop/Look4Sat
71 wiersze
2.2 KiB
YAML
71 wiersze
2.2 KiB
YAML
name: Look4Sat CI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v**
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Latest Commit
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup java environment
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Assemble APK and Bundle
|
|
run: |
|
|
chmod +x ./gradlew
|
|
./gradlew assembleRelease
|
|
./gradlew bundleRelease
|
|
|
|
- name: Sign APK
|
|
uses: r0adkll/sign-android-release@v1
|
|
id: sign_apk
|
|
with:
|
|
releaseDirectory: app/build/outputs/apk/release
|
|
signingKeyBase64: ${{ secrets.KEY_STORE }}
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
alias: ${{ secrets.KEY_ALIAS }}
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
|
env:
|
|
BUILD_TOOLS_VERSION: "34.0.0"
|
|
|
|
- name: Sign Bundle
|
|
uses: r0adkll/sign-android-release@v1
|
|
id: sign_bundle
|
|
with:
|
|
releaseDirectory: app/build/outputs/bundle/release
|
|
signingKeyBase64: ${{ secrets.KEY_STORE }}
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
alias: ${{ secrets.KEY_ALIAS }}
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
|
env:
|
|
BUILD_TOOLS_VERSION: "34.0.0"
|
|
|
|
- name: Rename APK and Bundle
|
|
run: |
|
|
mv ${{steps.sign_apk.outputs.signedReleaseFile}} app/build/outputs/apk/release/look4sat.apk
|
|
mv ${{steps.sign_bundle.outputs.signedReleaseFile}} app/build/outputs/apk/release/look4sat.aab
|
|
|
|
- name: Deploy Bundle to Play Store
|
|
uses: r0adkll/upload-google-play@v1
|
|
with:
|
|
serviceAccountJsonPlainText: ${{secrets.SERVICE_ACCOUNT_JSON}}
|
|
packageName: com.rtbishop.look4sat
|
|
releaseFiles: app/build/outputs/apk/release/look4sat.aab
|
|
track: production
|
|
whatsNewDirectory: fastlane/metadata/android/en-US/whatsnew
|
|
|
|
- name: Create release
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
artifacts: "app/build/outputs/apk/release/look4sat.apk,app/build/outputs/apk/release/look4sat.aab"
|
|
bodyFile: fastlane/metadata/android/en-US/whatsnew/whatsnew-en-US
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|