ThinkR-open / golem

A Framework for Building Robust Shiny Apps
https://thinkr-open.github.io/golem/
Other
885 stars 130 forks source link

[FR] GitHub Actions YAML Generation #1115

Open campbead opened 8 months ago

campbead commented 8 months ago

Is your feature request related to a problem? Please describe. A pain point I have is needing to manually set up GitHub Actions YAML files for deploying Shiny apps developed using the golem package. This manual configuration can be time-consuming and error-prone, and it would be greatly beneficial to streamline this process.

Describe the solution you'd like I would like to request the addition of a new feature in the golem package that automates the generation of a GitHub Actions YAML file for deploying Shiny apps. This feature, as a natural extension of the package's existing ability to generate Docker files, should allow users to customize the YAML file to meet their deployment needs, such as specifying the target environment (including shinyproxy), deployment triggers, and additional deployment steps.

Describe alternatives you've considered The alternatives I've considered are:

Continuing with the manual setup of GitHub Actions YAML files, which is time-consuming and prone to configuration errors. r-lib actions has tools to make this easier but even with these tools it is quite a manual process.

Additional context This feature would significantly enhance the usability and efficiency of the golem package for Shiny app developers. By automating the GitHub Actions YAML file generation process as a natural extension of the package's Docker file generation ability, golem users can save time, reduce errors, and maintain a consistent deployment workflow for their applications. This feature aligns with golem's goal of simplifying Shiny app development and deployment, making it even more user-friendly.

VincentGuyader commented 8 months ago

thanks,

it's seems to be a mission for https://github.com/ThinkR-open/lozen

(the lozen documentation It's quite... humm .. hard to foloow i have planed to refactor it, but i need some time to do so..)

ColinFay commented 6 days ago

I feel like this should be a golem feature (either building on top of lozen or pimping the existing code), gitlab + github.

golem::add_github_action() & golem::add_gitlab_ci()

Will dive into this in the upcoming weeks