Skip to content

Commit

Permalink
Download official releases from the release page URL
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Nov 20, 2024
1 parent b081183 commit 3041640
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ jobs:
cp /tmp/public*.xml .
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add ${{ env.FOLDER }}/SqueezeCloud-${{ env.VERSION }}.zip
git commit -m "Github Actions release ${{ env.VERSION }}" -a
if [ "${{ env.RELEASE_CHANNEL }}" == "dev" ]; then
git add ${{ env.FOLDER }}/SqueezeCloud-${{ env.VERSION }}.zip
COMMIT_MESSAGE_TYPE="development build"
else
COMMIT_MESSAGE_TYPE="release"
fi
git commit -m "Github Actions ${COMMIT_MESSAGE_TYPE} ${{ env.VERSION }}" -a
- name: Push changes to gh-pages
uses: ad-m/github-push-action@master
Expand Down
4 changes: 4 additions & 0 deletions public.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
<category>musicservices</category>
<icon>https://raw.githubusercontent.com/danielvijge/SqueezeCloud/master/HTML/EN/plugins/SqueezeCloud/html/images/icon.png</icon>
<desc lang="EN">Play music from SoundCloud</desc>
{%- if env['RELEASE_CHANNEL'] == 'release' %}
<url>https://github.com/danielvijge/SqueezeCloud/releases/download/{{ env['VERSION'] }}/SqueezeCloud-{{ env['VERSION'] }}.zip</url>
{%- else %}
<url>https://danielvijge.github.io/SqueezeCloud/{{ env['FOLDER'] }}/SqueezeCloud-{{ env['VERSION'] }}.zip</url>
{%- endif %}
<link>https://github.com/danielvijge/SqueezeCloud</link>
<sha>{{ env['SHA'] }}</sha>
<creator>Robert Siebert, Daniel Vijge, Robert Gibbon, David Blackman, KwarkLabs</creator>
Expand Down

0 comments on commit 3041640

Please sign in to comment.