mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-18 08:47:35 -04:00
Don't run publish-appxbundle if we are publishing WikiMed or Wikivoyage
This commit is contained in:
parent
4595b8662a
commit
470f4f21c2
6
.github/workflows/publish-appxbundle.yml
vendored
6
.github/workflows/publish-appxbundle.yml
vendored
@ -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
|
||||
}
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user