Minor cleanup

This commit is contained in:
arkon 2021-06-14 17:34:54 -04:00
parent 6bdc1e8d65
commit 0d09324da9

View File

@ -45,9 +45,9 @@ jobs:
exclude_types: "draft|prerelease" exclude_types: "draft|prerelease"
view_top: 1 view_top: 1
- name: Set env variables - name: Prepare build metadata
run: | run: |
set -x set -e
commit_count=$(git rev-list --count HEAD) commit_count=$(git rev-list --count HEAD)
echo "COMMIT_COUNT=$commit_count" >> $GITHUB_ENV echo "COMMIT_COUNT=$commit_count" >> $GITHUB_ENV
@ -75,9 +75,10 @@ jobs:
wrapper-cache-enabled: true wrapper-cache-enabled: true
dependencies-cache-enabled: true dependencies-cache-enabled: true
configuration-cache-enabled: true configuration-cache-enabled: true
- name: Clean up build artifacts - name: Clean up build artifacts
run: | run: |
set -x set -e
cp app/build/outputs/apk/standard/debug/app-standard-universal-debug.apk tachiyomi-r${{ env.COMMIT_COUNT }}.apk cp app/build/outputs/apk/standard/debug/app-standard-universal-debug.apk tachiyomi-r${{ env.COMMIT_COUNT }}.apk
md5=`md5sum tachiyomi-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'` md5=`md5sum tachiyomi-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
@ -95,7 +96,7 @@ jobs:
md5=`md5sum tachiyomi-x86-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'` md5=`md5sum tachiyomi-x86-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
echo "APK_X86_MD5=$md5" >> $GITHUB_ENV echo "APK_X86_MD5=$md5" >> $GITHUB_ENV
- name: Create Release - name: Create release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
tag_name: r${{ env.COMMIT_COUNT }} tag_name: r${{ env.COMMIT_COUNT }}