Changed artifact location

This commit is contained in:
XargonWan 2022-10-09 11:38:33 +02:00
parent af50137481
commit 7ec36e318a
2 changed files with 11 additions and 12 deletions

View file

@ -59,19 +59,18 @@ jobs:
# manipulating manifest # manipulating manifest
mv flathub.yml net.retrodeck.retrodeck.yml mv flathub.yml net.retrodeck.retrodeck.yml
# latest release name # Getting latest release name
version=$(\ # version=$(\
curl -sL \ # curl -sL \
-H "Accept: application/vnd.github+json" \ # -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TRIGGER_BUILD_TOKEN }}" \ # -H "Authorization: Bearer ${{ secrets.TRIGGER_BUILD_TOKEN }}" \
https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases \ # https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases \
| jq .[0].tag_name \ # | jq .[0].tag_name \
| tr -d \" \ # | tr -d \" \
) # )
sha=$(curl -sL https://github.com/XargonWan/RetroDECK-cooker/releases/download/$version/RetroDECK-Artifact.sha) sha=$(curl -sL https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.sha)
sed -i "s#__VERSION__#$version#g" net.retrodeck.retrodeck.yml
sed -i "s#__SHA__#$sha#g" net.retrodeck.retrodeck.yml sed -i "s#__SHA__#$sha#g" net.retrodeck.retrodeck.yml
echo -e "Resulting manifest:\n" echo -e "Resulting manifest:\n"

View file

@ -41,5 +41,5 @@ modules:
- cp -rn files/* /app - cp -rn files/* /app
sources: sources:
- type: archive - type: archive
url: https://github.com/XargonWan/RetroDECK-cooker/releases/download/__VERSION__/RetroDECK-Artifact.tar.gz url: https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.tar.gz
sha256: __SHA__ sha256: __SHA__