diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 892be9f..21a1814 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/public.template.xml b/public.template.xml index b8fcb13..3bf4f08 100644 --- a/public.template.xml +++ b/public.template.xml @@ -8,7 +8,11 @@ musicservices https://raw.githubusercontent.com/danielvijge/SqueezeCloud/master/HTML/EN/plugins/SqueezeCloud/html/images/icon.png Play music from SoundCloud +{%- if env['RELEASE_CHANNEL'] == 'release' %} + https://github.com/danielvijge/SqueezeCloud/releases/download/{{ env['VERSION'] }}/SqueezeCloud-{{ env['VERSION'] }}.zip +{%- else %} https://danielvijge.github.io/SqueezeCloud/{{ env['FOLDER'] }}/SqueezeCloud-{{ env['VERSION'] }}.zip +{%- endif %} https://github.com/danielvijge/SqueezeCloud {{ env['SHA'] }} Robert Siebert, Daniel Vijge, Robert Gibbon, David Blackman, KwarkLabs