Set the manual publish stage as optional

This makes CI green and lets the pipelines finish if publish-manual
is never run. Also be explicit that the publish job should never show up
outside of a protected branch in kde-linux/kde-linux.
This commit is contained in:
Thomas Duckworth
2026-07-04 02:59:53 +00:00
parent 9a46a0ec07
commit 02c0b9ff76

View File

@@ -94,6 +94,7 @@ publish:
rules:
- if: $CI_COMMIT_REF_PROTECTED == 'true' && $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME && $CI_PROJECT_PATH == 'kde-linux/kde-linux'
when: on_success
- when: never
needs:
- job: imaging
artifacts: true
@@ -122,10 +123,11 @@ publish-manual:
rules:
- if: $CI_COMMIT_REF_PROTECTED == 'true' && $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME && $CI_PROJECT_PATH == 'kde-linux/kde-linux'
when: manual
allow_failure: true
- when: never
needs:
- job: imaging
artifacts: true
allow_failure: false
image: storage.kde.org/vm-images/kde-linux-builder
id_tokens: *tokens
variables: *variables