diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d20e627..5ba6ff4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,16 @@ stages: - build - publish +# Only create pipelines automatically when a Git tag is pushed. +# Otherwise the pipeline must be started manually (pipeline "Run" / dispatch equivalent). +workflow: + rules: + - if: '$CI_COMMIT_TAG' + when: always + - if: '$CI_PIPELINE_SOURCE == "web"' + when: always + - when: never + variables: DOTNET_CLI_TELEMETRY_OPTOUT: "1" DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1" @@ -11,7 +21,7 @@ variables: build_windows: stage: build tags: - - windows + - shared-windows script: - dotnet --info - dotnet restore @@ -25,7 +35,7 @@ build_windows: publish_release: stage: publish tags: - - windows + - shared-windows needs: - build_windows script: