Refactor build-action API - closes #25