From: Kaliko Jack Date: Sat, 11 Nov 2023 13:00:18 +0000 (+0100) Subject: ci: s/only/changes/ X-Git-Tag: v0.9.0~19 X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=commitdiff_plain;h=699eabe2c4d10a974166da51d6e7c27578f08d11 ci: s/only/changes/ --- 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"