apache / arrow-cookbook

Apache Arrow Cookbook
https://arrow.apache.org/
Apache License 2.0
95 stars 46 forks source link

[Dev] Run correct cookbook version based on branch and deploy development cookbooks and stable cookbooks #284

Closed raulcd closed 1 year ago

raulcd commented 1 year ago

This PR makes some changes on the current GitHub actions workflows to work with both the current development version of Arrow and the stable version.

On commits on the default branch (main) the development cookbooks will be deployed. I've tested on my branch setting it up on GitHub pages: https://raul.dev/arrow-cookbook/dev/ As can be seen there (on the Java or Python cookbooks) the version used is the nightlies one: https://raul.dev/arrow-cookbook/dev/java/index.html or https://raul.dev/arrow-cookbook/dev/py/index.html Example of workflow run: https://github.com/raulcd/arrow-cookbook/actions/runs/3731385491

On commits on the stable branch the stable cookbooks will be deployed: https://raul.dev/arrow-cookbook/index.html with the current stable version being used to build: https://raul.dev/arrow-cookbook/java/index.html or https://raul.dev/arrow-cookbook/py/index.html Example of workflow run: https://github.com/raulcd/arrow-cookbook/actions/runs/3731189658

On PRs against main the nightlies version will be used, example of PR: https://github.com/raulcd/arrow-cookbook/pull/11/checks Using the nightlies version: https://github.com/raulcd/arrow-cookbook/actions/runs/3731199253/jobs/6329147897#step:4:88

On PRs against stable the stable version will be used. Example of PR: https://github.com/raulcd/arrow-cookbook/pull/12/checks Using the stable version: https://github.com/raulcd/arrow-cookbook/actions/runs/3732065139/jobs/6331024764#step:4:74

assignUser commented 1 year ago

+1