You can find example workflows in "Publishing and installing a package with GitHub Actions" or in any of these GitHub Actions guides:
This version of GitHub Enterprise Server was discontinued on 2024-03-26. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.
Example workflows for publishing a package
To help you get started with your own custom workflows, review some example workflows for publishing packages.