Skip to content

[feature] 1.新架构 #3

[feature] 1.新架构

[feature] 1.新架构 #3

Workflow file for this run

name: release
on:
push:
tags:
- '**'
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 a+x ./gradlew
./gradlew :app:assemble
- 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-release-unsigned-signed.apk easybangumi-${{ github.ref_name }}.apk
- name: Release
run: |
gh release create -d ${{ github.ref_name }} kan-animation-${{ github.ref_name }}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}