Repository navigation
ci: enviar iOS a revisión al publicar y desplegar el plugin de analítica - #42
Merged
Merged
Conversation
- ensure-tags passes submit_for_review to build-ios; submission moves to a Linux job running app-store-submit.mjs (reviewSubmissions API, waits for processing, sets What's New from store-assets/whatsnew). - deploy-analytics.yml rsyncs backend/emerkit-analytics to srv07 on push to main, checks the plugin is active and smoke-tests the public contract. - CI lints the plugin on PHP 7.4/8.4 and runs its tests with MariaDB.
- Resume versions left in READY_FOR_REVIEW, treat PROCESSING_FOR_DISTRIBUTION as submitted, retry network errors and non-JSON 5xx bodies. - rsync -p so --chmod also fixes existing world-writable plugin files. - Document the automatic release and plugin deploy in CLAUDE.md, README and the operations guide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objetivo: que fusionar en
mainpublique sin pasos manuales.iOS: el release automático se envía a revisión
ensure-tags.ymlpasasubmit_for_review: trueabuild-ios.yml.Submit to App Review), así la espera a que Apple procese el build no consume minutos de macOS.altool --list-builds, que no existe, yappStoreVersionSubmissions, que es la API obsoleta. Lo sustituye.github/scripts/app-store-submit.mjs, adaptado del de sacadiez-app y que ya usa RocStatus#436. Con la APIreviewSubmissions:store-assets/whatsnew/<locale>.txt, que Apple exige en las actualizaciones;meta.associatedErrors(pendiente que se anotó en RocStatus).store-assets/whatsnew/es-ES.txtyen-US.txt. Si no se tocan, se reutiliza el texto genérico.Plugin
backend/emerkit-analytics: CD a srv07/var/www/vhosts/globalemergency.online/httpdocs/wp-content/plugins/emerkit-analytics), servido enemerkit.globalemergency.online. Versión 1.0.1, activa. El código desplegado coincide conmainsalvo los finales de línea CRLF de la copia manual.deploy-analytics.yml, con el mismo patrón que SITREP (push amaincon filtro de rutas,concurrency, secretosSRV07_HOST/USER/DEPLOY_KEY) y rsync como el backend PHP de apuntate:rsync --delete --delay-updatessintests/ni.md;.phpen 666, escribibles por cualquiera);wp plugin is-active;/eventsresponde 400 con un lote vacío y la redirección Android responde 302 a un HEAD, que no cuenta como clic.gha-emerkit-analytics-deployconrestrict, añadida aauthorized_keysdel usuarioglobalemergency.online(backup enauthorized_keys.bak-20261103). La privada está en el vault (Hosting → srv07 deploy key EmerKit Analytics) y en los secretos del repo.CI con PHP
ci.ymlno cubría PHP. Nuevo jobAnalytics plugin (PHP):web/, linux/, macos/, windows/
No se publican en ningún sitio:
flutter build web.Son carpetas del scaffold de Flutter para desarrollo local, así que no necesitan CD. Si alguno empieza a publicarse, habrá que añadirlo.
Sin cambios de código de app: no hace falta subir versión.