Hi @pcace thanks for your question. It is certainly possible. I suggest reading Encrypted secrets - GitHub Docs, Workflow syntax for GitHub Actions - GitHub Docs and Executing commands over SSH with GitHub Actions.
Those should provide you with enough to hopefully get unblocked. @rob might be a better resource for baremetal
than myself if not.