From 71757a103ad3c4fa10029bcbfc2c4db0e24f116a Mon Sep 17 00:00:00 2001 From: Kwangjin Lee <k.lee-5@student.tudelft.nl> Date: Wed, 2 Oct 2024 15:34:36 +0200 Subject: [PATCH] change pipeline and test --- .gitlab-ci.yml | 10 +++++----- book/intro.md | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b978b40..cccaaae4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ build-book: stage: build script: - | - if [ "$CI_COMMIT_BRANCH" == "publish" ]; then + if [ "$CI_COMMIT_BRANCH" == "release" ]; then echo "Building production version" teachbooks build --publish book/ > >(tee stdout.log) 2> >(tee stderr.log >&2) else @@ -40,8 +40,8 @@ build-book: - build_job_id.txt expire_in: 1 week rules: - - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish" - - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "publish" + - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "release" + - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "release" when: always deploy-draft: @@ -69,9 +69,9 @@ deploy-production: curl -X POST https://mude.citg.tudelft.nl/hooks/book-deploy-production \ -H "Content-Type: application/json" \ -H "X-Gitlab-Token: glpat-m4CzsDqHnXNn3Pf5Whyd" \ - -d "{\"object_kind\":\"pipeline\",\"object_attributes\":{\"status\":\"success\",\"ref\":\"publish\"},\"build_job_id\":$BUILD_JOB_ID}" + -d "{\"object_kind\":\"pipeline\",\"object_attributes\":{\"status\":\"success\",\"ref\":\"release\"},\"build_job_id\":$BUILD_JOB_ID}" environment: name: production url: https://mude.citg.tudelft.nl/2024/book rules: - - if: $CI_COMMIT_BRANCH == "publish" \ No newline at end of file + - if: $CI_COMMIT_BRANCH == "release" \ No newline at end of file diff --git a/book/intro.md b/book/intro.md index e6c58b16..cef35f22 100644 --- a/book/intro.md +++ b/book/intro.md @@ -2,6 +2,8 @@ Welcome to the MUDE textbook for the 2024-25 academic year. This is where assigned reading is located, along with interactive exercises to practice and study the module material. +test text + ````{admonition} Interactive Pages---Use Python in your Browser! This online textbook has a number of pages that are set up to be used interactively. You can use the "Live Code" button under the Rocket Ship icon in the top right to activate the interactive features and use Python interactively! -- GitLab