This commit is contained in:
parent
f3172fc633
commit
663e8da456
2 changed files with 9 additions and 4 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -33,14 +33,11 @@ jobs:
|
|||
APPLICATION_ID=$(grep '^APPLICATION_ID=' version.txt | awk -F 'APPLICATION_ID=' '{print $2}')
|
||||
VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | awk -F 'VERSION_NAME=v' '{print $2}')
|
||||
VERSION_CODE=$(grep '^VERSION_CODE=' version.txt | awk -F 'VERSION_CODE=' '{print $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
|
||||
echo "APPLICATION_ID=$APPLICATION_ID" >> $GITHUB_ENV
|
||||
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
|
||||
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
|
||||
echo "RELEASE_NOTES=$RELEASE_NOTES" >> $GITHUB_ENV
|
||||
|
||||
- name: Replace Assets
|
||||
run: |
|
||||
|
@ -180,6 +177,15 @@ jobs:
|
|||
VERSION_NAME: ${{ env.VERSION_NAME }}
|
||||
VERSION_CODE: ${{ env.VERSION_CODE }}
|
||||
|
||||
|
||||
- name: release-notes
|
||||
run: |
|
||||
TAG=$(cat release.txt)
|
||||
RELEASE_NOTES=$(curl -s "https://api.github.com/repos/jellyfin/jellyfin-androidtv/releases/tags/$TAG" | jq -r '.body')
|
||||
|
||||
echo "RELEASE_NOTES=$RELEASE_NOTES" >> $GITHUB_ENV
|
||||
|
||||
|
||||
- name: Create Release and Upload Assets
|
||||
uses: actions/forgejo-release@v2
|
||||
with:
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
v0.18.3
|
||||
|
||||
|
|
Loading…
Reference in a new issue