From 470f4f21c2657dac49b4379ad2e732b35e398957 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Wed, 7 Jun 2023 14:05:46 +0100 Subject: [PATCH] Don't run publish-appxbundle if we are publishing WikiMed or Wikivoyage --- .github/workflows/publish-appxbundle.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-appxbundle.yml b/.github/workflows/publish-appxbundle.yml index 4b31307a..d83e00bb 100644 --- a/.github/workflows/publish-appxbundle.yml +++ b/.github/workflows/publish-appxbundle.yml @@ -43,14 +43,20 @@ jobs: # Runs the upload script - name: Run upload script env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG_NAME: ${{ github.event.release.tag_name }} INPUT_TAGNAME: ${{ github.event.inputs.version }} shell: pwsh run: | + $GITHUB_TOKEN = $Env:GITHUB_TOKEN $TAG_NAME = $Env:TAG_NAME # Provide a dummy tag if the tag is not defined if (-Not $TAG_NAME) { $TAG_NAME = $Env:INPUT_TAGNAME } - echo "Using tag: $TAG_NAME for version upload" - .\scripts\Push-KiwixRelease.ps1 "$TAG_NAME" -tag -yes + if ($TAG_NAME -imatch 'wiki(med|voyage)') { + "Nothing to upload because we don't publish WikiMed or Wikivoyage packages to Kiwix." + } else { + echo "Using tag: $TAG_NAME for version upload" + .\scripts\Push-KiwixRelease.ps1 "$TAG_NAME" -tag -yes + }