33key-layout #58
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: 33key-layout | |
on: | |
pull_request: | |
push: | |
branches: [33key-layout] | |
jobs: | |
develop: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-24.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Fetch source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- uses: cachix/install-nix-action@v30 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: fcitx5-android | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: decode-base64-github-action | |
uses: akiojin/[email protected] | |
with: | |
base64: ${{ secrets.STORE_FILE_BASE64 }} | |
output-path: ${{ github.workspace }}/release-key.jks | |
- name: Build Release APK | |
env: | |
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | |
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
STORE_FILE: ${{ github.workspace }}/release-key.jks | |
run: | | |
nix develop .#noAS --command git tag ${{ github.ref_name }} | |
nix develop .#noAS --command ./gradlew :app:assembleRelease | |
- name: Create release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: 33key | |
prerelease: true | |
title: ${{ github.ref_name }} Release | |
files: | | |
app/build/outputs/apk/release/*.apk |