You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Deploy Ansible Galaxy Collection
v1.0.10
Deploy a Collection to Ansible Galaxy.
This action expects to be run from a repository with certain met conditions.
- The repository is an Ansible Galaxy Collection, meaning it contains a
galaxy.yml
file at the project root. - This action is part of a Python workflow.
- This means your workflow should include a step for
uses: actions/setup-python@v1
. - Before this action is called, ensure that
ansible
is installed (pip install ansible
).
- This means your workflow should include a step for
An example workflow using this action can be found here.
Required Ansible Galaxy API key.
This should be stored in a Secret on GitHub. See Creating and Using Secrets Encrypted Variables.
Default: galaxy.yml
A collection must have a galaxy.yml file that contains the necessary information to build a collection artifact. Defaults to galaxy.yml
in the project root.
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible # Must be at least 2.9.0
- name: Build and Deploy Collection
uses: artis3n/ansible_galaxy_collection@v1
with:
api_key: 'df328fawrfr32iuaw'