Skip to content

Commit

Permalink
ci: complete release ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jan 15, 2024
1 parent d4709f8 commit abb2431
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release ci
name: Release
on:
push:
tags:
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
id: jni-cache
with:
path: "app/prebuilt"
key: ${{ runner.os }}-trime-jni-debug-${{ steps.cache-hash.outputs.hash }}
key: ${{ runner.os }}-trime-jni-release-${{ steps.cache-hash.outputs.hash }}

- name: Fetch submodules
if: ${{ !steps.jni-cache.outputs.cache-hit }}
Expand All @@ -49,19 +49,20 @@ jobs:

- name: Setup keystore
run: |
echo "set up keystore for release"
echo "need help!!"
- name: Install dependency
run: ./script/dependency.sh
echo ${{ secrets.SIGNING_KEY }} | base64 --decode | cat >> signingkey.jks
cat << EOF > keystore.properties
storeFile=signingkey.jks
storePassword=${{ secrets.KEY_STORE_PASSWORD }}
keyAlias=${{ secrets.ALIAS }}
keyPassword=${{ secrets.KEY_PASSWORD }}
EOF
- name: Build Trime
run: make debug
run: make release

- name: Add JNI cache
if: ${{ !steps.jni-cache.outputs.cache-hit }}
# TODO: replace debug with release after we switched to "make release"
run: cp -R app/build/intermediates/stripped_native_libs/debug/out/lib app/prebuilt
run: cp -R app/build/intermediates/stripped_native_libs/release/out/lib app/prebuilt

- name: Build changelog
id: build_changelog
Expand All @@ -79,7 +80,7 @@ jobs:
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "app/build/outputs/apk/**/*.apk"
artifacts: "app/build/outputs/apk/release/*.apk"
body: |
${{ steps.build_changelog.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit abb2431

Please sign in to comment.