From 580c9ae95ad8927978536043602e0cf68040e259 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 21 May 2024 10:15:35 +0800 Subject: [PATCH] =?UTF-8?q?ci(gitlab-ci):=20=E5=8E=BB=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84=E6=B5=8B=E8=AF=95=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=BA=BF=E8=A7=A6=E5=8F=91=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab/ci.yml b/.gitlab/ci.yml index ccfdc9d..9cd5be6 100644 --- a/.gitlab/ci.yml +++ b/.gitlab/ci.yml @@ -15,9 +15,8 @@ stages: check-typst-compile: stage: check rules: - # - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH - # - if: $CI_COMMIT_TAG =~ /v[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*/ - - if: $CI_COMMIT_TAG # trigger rule for debugging + - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH + - if: $CI_COMMIT_TAG =~ /v[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*/ before_script: - export PATH="$PATH:$CARGO_HOME/bin" - cargo install typst-cli @@ -35,8 +34,7 @@ check-typst-compile: release-commit: stage: release rules: - # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "web" - - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH # trigger rules for debugging + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "web" before_script: - export PATH="$PATH:$CARGO_HOME/bin" - cargo install git-cliff sd @@ -81,8 +79,7 @@ gitlab-release: typst.universe-release: stage: release rules: - # - if: $CI_COMMIT_TAG =~ /v[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*/ - - if: $CI_COMMIT_TAG # trigger rule for debugging + - if: $CI_COMMIT_TAG =~ /v[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*/ before_script: - export PATH="$PATH:$CARGO_HOME/bin" - cargo install sd