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
10
.github/workflows/publish-appxbundle.yml
vendored
10
.github/workflows/publish-appxbundle.yml
vendored
@ -43,14 +43,20 @@ jobs:
|
|||||||
# Runs the upload script
|
# Runs the upload script
|
||||||
- name: Run upload script
|
- name: Run upload script
|
||||||
env:
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||||
INPUT_TAGNAME: ${{ github.event.inputs.version }}
|
INPUT_TAGNAME: ${{ github.event.inputs.version }}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
|
$GITHUB_TOKEN = $Env:GITHUB_TOKEN
|
||||||
$TAG_NAME = $Env:TAG_NAME
|
$TAG_NAME = $Env:TAG_NAME
|
||||||
# Provide a dummy tag if the tag is not defined
|
# Provide a dummy tag if the tag is not defined
|
||||||
if (-Not $TAG_NAME) {
|
if (-Not $TAG_NAME) {
|
||||||
$TAG_NAME = $Env:INPUT_TAGNAME
|
$TAG_NAME = $Env:INPUT_TAGNAME
|
||||||
}
|
}
|
||||||
echo "Using tag: $TAG_NAME for version upload"
|
if ($TAG_NAME -imatch 'wiki(med|voyage)') {
|
||||||
.\scripts\Push-KiwixRelease.ps1 "$TAG_NAME" -tag -yes
|
"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