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

Update .gitlab-ci.yml file

parent 807f8aa4
No related branches found
No related tags found
1 merge request!3Main
Pipeline #244926 passed
......@@ -15,16 +15,19 @@ before_script:
- bundle config set --local path 'vendor/bundle'
- bundle install
build:
build-page:
stage: build
script:
- JEKYLL_ENV=production bundle exec jekyll build --destination public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish"
deploy-draft:
stage: deploy
needs: ["build-page"]
rules:
- if: $CI_COMMIT_BRANCH == "main"
script:
......@@ -45,6 +48,7 @@ deploy-draft:
deploy-production:
stage: deploy
needs: ["build-page"]
rules:
- if: $CI_COMMIT_BRANCH == "publish"
script:
......@@ -61,4 +65,4 @@ deploy-production:
}'
environment:
name: production
url: https://mude.citg.tudelft.nl/2024
\ No newline at end of file
url: https://mude.citg.tudelft.nl/2024/website
\ No newline at end of file
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