Skip to content
Deploy a Collection to Ansible Galaxy
Branch: master
Clone or download
artis3n Fixed outdated debug message (#26)
* Missed correcting outdated variables in a debug message


* Updating debug message

* Updated dist

* Just removing the message

* Updated dist

* Reverting weirdness

* Moving the class

* Updating the build

* Class is causing issues, removing

Latest commit 2e71904 Nov 3, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows v1.0.9 (#25) Nov 2, 2019
dist Fixed outdated debug message (#26) Nov 3, 2019
.gitignore V1 (#1) Oct 22, 2019
.nvmrc V1 (#1) Oct 22, 2019 Fixed outdated debug message (#26) Nov 3, 2019
LICENSE Create LICENSE Oct 23, 2019 v1.0.9 (#25) Nov 2, 2019
action.yml Fixing error in entrypoint for JS action Oct 22, 2019
galaxy.yml Fixed outdated debug message (#26) Nov 3, 2019
package-lock.json Fixed outdated debug message (#26) Nov 3, 2019
package.json Fixed outdated debug message (#26) Nov 3, 2019


Deploy a Collection to Ansible Galaxy.


This action expects to be run from a repository with certain met conditions.

  1. The repository is an Ansible Galaxy Collection, meaning it contains a galaxy.yml file at the project root.
  2. This action is part of a Python workflow.
    1. This means your workflow should include a step for uses: actions/setup-python@v1.
    2. Before this action is called, ensure that ansible is installed (pip install ansible).

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.

Example Usage

- name: Set up Python 3
  uses: actions/setup-python@v1
    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
    api_key: 'df328fawrfr32iuaw'
You can’t perform that action at this time.