File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # This file is a template, and might need editing before it works on your project.
2- # To contribute improvements to CI/CD templates, please follow the Development guide at:
3- # https://docs.gitlab.com/ee/development/cicd/templates.html
4- # This specific template is located at:
5- # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/HTML.gitlab-ci.yml
6-
7- # Full project: https://gitlab.com/pages/plain-html
8- pages :
1+ # Deploy to Cloudflare Pages
2+ deploy :
93 stage : deploy
4+ image : node:18
105 environment : production
6+ before_script :
7+ - npm install -g wrangler
118 script :
12- - mkdir .public
13- - cp -r ./* .public
14- - rm -rf public
15- - mv .public public
16- artifacts :
17- paths :
18- - public
9+ # Deploy to Cloudflare Pages
10+ - npx wrangler pages deploy . --project-name=startpage
1911 rules :
2012 - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
You can’t perform that action at this time.
0 commit comments