Update README and add GitLab CI/CD configuration for automatic deployment

This commit is contained in:
sHa
2025-03-19 15:52:38 +02:00
parent 8fa4d61b4e
commit 40e458df4a
2 changed files with 33 additions and 21 deletions

20
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,20 @@
# GitLab CI/CD configuration for GitLab Pages
pages:
stage: deploy
script:
# Create the public directory (GitLab Pages serves from this directory)
- mkdir -p public
# Copy all necessary files to the public directory
- cp index.html public/
- cp script.js public/
- cp styles.css public/
- cp *.svg public/
# Print deployment info
- echo "Deploying theme switcher to GitLab Pages..."
artifacts:
paths:
- public
only:
- main # This job will only run on the main branch