How to use Rockcraft’s GitHub Action¶
Within your GitHub repository, make sure you have GitHub Actions enabled.
Navigate to .github/workflows
, open the YAML file where you want the rock
build to take place, and add the following steps:
steps:
- uses: actions/checkout@v3
- uses: canonical/craft-actions/rockcraft-pack@main
Commit and push the changes. This will trigger a new workflow run using
Rockcraft to pack your rock based on the rockcraft.yaml
file at your
project’s root.
To learn how to publish this rock outside the GitHub build environment and how to pass additional input parameters to this action, please refer to the action’s documentation.