Skip to content

Commit 53af665

Browse files
committed
push to cloudflare pages
1 parent fa15cbe commit 53af665

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

.gitlab-ci.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
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

0 commit comments

Comments
 (0)