From 699eabe2c4d10a974166da51d6e7c27578f08d11 Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Sat, 11 Nov 2023 14:00:18 +0100 Subject: [PATCH] ci: s/only/changes/ --- .gitlab-ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5144129..4d7f68d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,10 +25,11 @@ stages: - source venv/bin/activate - pip install pytest-cov - py.test -q --cov=musicpd test.py - only: - changes: + rules: + - changes: - musicpd.py - test.py + - if: $MUSICPD_TEST test-py3.11: extends: @@ -87,8 +88,8 @@ build: - dist/*.whl - dist/*.tar.gz - dist/*.zip - only: - - pushes + rules: + - if: $CI_PIPELINE_SOURCE == "push" tag_release: stage: build @@ -105,8 +106,8 @@ tag_release: - dist/*.tar.gz - dist/*.zip name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG" - only: - - tags + rules: + - if: $CI_COMMIT_TAG pages: stage: build @@ -116,5 +117,5 @@ pages: artifacts: paths: - public - only: - - master + rules: + - if: $CI_COMMIT_BRANCH == "master" -- 2.39.5