Skip to content
Snippets Groups Projects
Commit 71757a10 authored by Kwangjin Lee's avatar Kwangjin Lee
Browse files

change pipeline and test

parent 3fdd672b
No related branches found
No related tags found
1 merge request!394Week 8 adjustments from Robert
Pipeline #249341 passed
......@@ -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
......@@ -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!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment