cache: paths: - ./ghost-upload/target/ - ./ghost-upload/cargo/ publish: stage: deploy image: rust:latest script: - cd ./ghost-upload - cargo run needs: - pages # Temporarily allow all branches for debugging # rules: # - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" # 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: - pages # Temporarily allow all branches for debugging rules: - when: manual allow_failure: false # rules: # - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" # when: manual # allow_failure: false variables: FORCE_UPDATE: "true"