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 will be discontinued on 2026-08-25. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, 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.