aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKaran Jayachandra <me@karanj.com>2025-11-09 16:36:59 +0100
committerKaran Jayachandra <me@karanj.com>2025-11-09 16:36:59 +0100
commitb5cbc5700ad9dc4298d2d41d3f9361cfb033214a (patch)
tree0a62ed59d2ee0510156c869c52fa79ce876ad5af /.gitlab-ci.yml
parentef064591d9f31c88df27624277ee9747bd806a74 (diff)
Added a simple deploy
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..31bc86e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,15 @@
+# The Docker image that will be used to build your app
+image: node:lts
+create-pages:
+ pages:
+ # The folder that contains the files to be exposed at the Page URL
+ publish: public
+ rules:
+ # This ensures that only pushes to the default branch will trigger
+ # a pages deploy
+ - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
+ # Functions that should be executed before the build script is run
+ before_script:
+ - mkdir public
+ script:
+ - cp index.html index.css icon.svg *.js *.mjs public/