This commit is contained in:
parent
1ce48ee31f
commit
50f96e026d
3 changed files with 7 additions and 5 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -33,11 +33,14 @@ jobs:
|
||||||
APPLICATION_ID=$(grep '^APPLICATION_ID=' version.txt | cut -d '=' -f 2)
|
APPLICATION_ID=$(grep '^APPLICATION_ID=' version.txt | cut -d '=' -f 2)
|
||||||
VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | cut -d '=' -f 2)
|
VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | cut -d '=' -f 2)
|
||||||
VERSION_CODE=$(grep '^VERSION_CODE=' version.txt | cut -d '=' -f 2)
|
VERSION_CODE=$(grep '^VERSION_CODE=' version.txt | cut -d '=' -f 2)
|
||||||
|
TAG=$(cat release.txt) # Read the tag from release.txt
|
||||||
|
RELEASE_NOTES=$(curl -s "https://api.github.com/repos/jellyfin/jellyfin-androidtv/releases/tags/$TAG" | jq -r '.body')
|
||||||
|
|
||||||
# Export values as environment variables
|
# Export values as environment variables
|
||||||
echo "APPLICATION_ID=$APPLICATION_ID" >> $GITHUB_ENV
|
echo "APPLICATION_ID=$APPLICATION_ID" >> $GITHUB_ENV
|
||||||
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
|
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
|
||||||
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
|
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
|
||||||
|
echo "RELEASE_NOTES=$RELEASE_NOTES" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Replace Assets
|
- name: Replace Assets
|
||||||
run: |
|
run: |
|
||||||
|
@ -172,8 +175,7 @@ jobs:
|
||||||
mv ${{ steps.sign_apk.outputs.signedFiles }} ./release-assets/AlaskarTV-${{ env.VERSION_NAME }}-signed.apk
|
mv ${{ steps.sign_apk.outputs.signedFiles }} ./release-assets/AlaskarTV-${{ env.VERSION_NAME }}-signed.apk
|
||||||
mv ${{ steps.sign_aab.outputs.signedFiles }} ./release-assets/AlaskarTV-${{ env.VERSION_NAME }}-signed.aab
|
mv ${{ steps.sign_aab.outputs.signedFiles }} ./release-assets/AlaskarTV-${{ env.VERSION_NAME }}-signed.aab
|
||||||
zip -r ./release-assets/debug-symbols.zip app-release/app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*/
|
zip -r ./release-assets/debug-symbols.zip app-release/app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*/
|
||||||
|
echo "${{ env.RELEASE_NOTES }}" > ./release-assets/release-notes.txt
|
||||||
# cp whatsnew.txt ./release-assets/release-notes.txt
|
|
||||||
env:
|
env:
|
||||||
VERSION_NAME: ${{ env.VERSION_NAME }}
|
VERSION_NAME: ${{ env.VERSION_NAME }}
|
||||||
VERSION_CODE: ${{ env.VERSION_CODE }}
|
VERSION_CODE: ${{ env.VERSION_CODE }}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
APPLICATION_ID=org.askartv.tv
|
APPLICATION_ID=org.askartv.tv
|
||||||
VERSION_NAME=v0.3.0
|
VERSION_NAME=v0.2.9
|
||||||
VERSION_CODE=16
|
VERSION_CODE=15
|
||||||
|
|
Loading…
Reference in a new issue