Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MOldtime committed Dec 7, 2024
1 parent e76ac29 commit dcd156b
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build

on:
pull_request:
push:
# branches: [46key-layout]
branches: [fcitx5-android]

jobs:
develop:
runs-on: ubuntu-24.04
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: Apply patch
# if: ${{ matrix.patch != '46key' }}
# run: |
# git apply patches/${{ matrix.patch }}.patch
# - 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: |
# git tag -d 26key 35key 45key 45key-numbers 46key
# nix develop .#noAS --command ./gradlew app:assembleRelease
- name: Create release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
append_body: true
prerelease: true
tag_name: "test"
name: "${{ matrix.patch }} Layout Release"
body: "\n## Image\n![image](https://raw.githubusercontent.com/MOldtime/Pictrue/refs/heads/master/1584768629373.png)"
files: |
./*.png
# uses: marvinpinto/action-automatic-releases@latest
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# automatic_release_tag: ${{ matrix.patch }}
# prerelease: true
# title: "${{ matrix.patch }} Layout Release"
# files: |
# app/build/outputs/apk/release/*.apk

0 comments on commit dcd156b

Please sign in to comment.