mirror of
https://github.com/shadoll/theme-switcher.git
synced 2025-12-20 05:29:07 +00:00
Update README and add GitLab CI/CD configuration for automatic deployment
This commit is contained in:
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user