release #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | ||
on: | ||
push: | ||
tags: | ||
- '**' | ||
workflow_dispatch: | ||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
- name: Build | ||
run: | | ||
chmod +x ./gradlew | ||
./gradlew :app:assemble | ||
env: | ||
APPCENTER_SECRET: ${{APPCENTER_SECRET}} | ||
Check failure on line 22 in .github/workflows/release.yml GitHub Actions / releaseInvalid workflow file
|
||
- name: sign-apk | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/apk/release | ||
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEY_STORE_PWD }} | ||
keyPassword: ${{ secrets.KEY_PWD }} | ||
- name: rename-apk | ||
run: | | ||
mv app/build/outputs/apk/release/app-universal-release-unsigned-signed.apk easybangumi-universal-${{ github.ref_name }}.apk | ||
mv app/build/outputs/apk/release/app-arm64-v8a-release-unsigned-signed.apk easybangumi-arm64-v8a-${{ github.ref_name }}.apk | ||
mv app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned-signed.apk easybangumi-armeabi-v7a-${{ github.ref_name }}.apk | ||
- name: Release | ||
run: | | ||
gh release create -d ${{ github.ref_name }} easybangumi-*-${{ github.ref_name }}.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} |