Skip to content

release

release #11

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 22, Col: 29): Unrecognized named-value: 'APPCENTER_SECRET'. Located at position 1 within expression: APPCENTER_SECRET
- 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 }}