1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-09-14 09:35:04 +00:00
Files
Projects/ghost-upload/.gitlab-ci.yml

31 lines
592 B
YAML

publish:
stage: deploy
image: rust:latest
script:
- cd ./ghost-upload
- cargo run
needs:
- job: deploy
optional: true
- job: staging
optional: true
# Manual trigger to force update all Ghost posts
force-update-ghost:
stage: deploy
image: rust:latest
script:
- echo "🔄 Force updating all Ghost posts..."
- cd ./ghost-upload
- FORCE_UPDATE=true cargo run
needs:
- job: deploy
optional: true
- job: staging
optional: true
rules:
- when: manual
allow_failure: false
variables:
FORCE_UPDATE: "true"