[release] 1.0 #4
Workflow file for this run
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 :extension-app:assemble | |
- name: sign-apk | |
uses: r0adkll/sign-android-release@v1 | |
with: | |
releaseDirectory: extension-app/build/outputs/apk/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.KEY_ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PWD }} | |
keyPassword: ${{ secrets.KEY_PWD }} | |
env: | |
# override default build-tools version (29.0.3) -- optional | |
BUILD_TOOLS_VERSION: "30.0.2" | |
- name: rename-apk | |
run: | | |
mv extension-app/build/outputs/apk/release/extension-app-release-unsigned-signed.apk extension-app-${{ github.ref_name }}.apk | |
- name: Release | |
run: | | |
gh release create -d ${{ github.ref_name }} extension-app-${{ github.ref_name }}.apk | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} |