use changelog only when it is in gh-pages which is done only when a release got tagged

This commit is contained in:
Martin Marmsoler 2022-04-30 14:37:31 +02:00
parent 8268c2eaee
commit 9a4e75f7b3
2 changed files with 7 additions and 2 deletions

View File

@ -323,7 +323,12 @@ jobs:
**/artifacts/Gittyup Flatpak/com.github.Murmele.Gittyup.yml
**/Gittyup-x86_64/*.flatpak
# update github pages only if it is a release
# needed otherwise the docs folder is not available
- name: Checkout repository
if: ${{ !env.IS_RELEASE }}
uses: actions/checkout@v1
# update github pages only if it is a release
- name: Deploy Github pages
if: ${{ !env.IS_RELEASE }}
uses: JamesIves/github-pages-deploy-action@v4.3.3

View File

@ -46,7 +46,7 @@ const QString kTemplateFmt = "%1-XXXXXX.%2";
const QString kLinkFmt =
"https://github.com/Murmele/gittyup/releases/download/stable/Gittyup%1%2.%3";
const QString kChangelogUrl =
"https://raw.githubusercontent.com/Murmele/gittyup/master/docs/changelog.md";
"https://raw.githubusercontent.com/Murmele/Gittyup/gh-pages/changelog.md";
} // anon. namespace