mirror of
https://github.com/shadoll/theme-switcher.git
synced 2025-12-20 02:26:12 +00:00
21 lines
528 B
YAML
21 lines
528 B
YAML
# 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
|