[INFRA] add automation to the examples repository release part #925
Labels
chore
Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
enhancement
New feature or request
Milestone
Currently, we have to manage the examples repository manually as described in https://github.com/process-analytics/bpmn-visualization-js/blob/v0.8.0/docs/contributors/maintainers.md
The macro steps are
Except for the tests part (which we will address eventually later), we should be able to automate everything to have the Pull Request.
This would help avoiding issue like the one we had after the
0.8.0
release, see process-analytics/bpmn-visualization-examples#110Additional Context
When implementing, remember that we have a playground repository to test and poc the workflows.
Proposals to be discussed
Notes: more solutions are going to be proposed
Solution 1: on tag, build demo and trigger a new workflow in the examples repository
What we have now: the demo is built on master push and tag, and it is archived as a GH Actions artifact.
Proposed solution
workflow_dispatch
(can be triggered manually or from the lib repo) which would do what we manually doprocess-analytics-bot
userAbout what triggers the examples workflow
For a better understanding, we should probably avoid triggering it from the generate demo for a better separation of concern
We could stop building the demo on tag in the regular 'build demo' workflow and create a new specific workflow in charge of managing the example: prepare data (the demo) and trigger the
This new workflow could also be run manually on demand if we configure it to be trigger on workflow_dispatch with the version (in
x.y.z
format) as input parameterAbout the demo retrieval
This is the part we have to investigate, mainly to be able to know if we can have a demo artifact download url or an artifact id.
See
Passing the tag would make manual run easier, this is a nice to have. It implies being able to retrieve the GH worfklow run with the tag then retrieve the artifact url.
Solution 2: the lib release workflow also update the examples repositories
To be checked if we have issue with Solution 1 (mainly on the demo download part)
Changes compared to Solution 1
download artifact
actionThe text was updated successfully, but these errors were encountered: