Skip to content
box

GitHub Action

Publish Ansible Collection

1.3.0 Latest version

Publish Ansible Collection

box

Publish Ansible Collection

Build and publish an Ansible Collection to Ansible Galaxy

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Publish Ansible Collection

uses: arillso/[email protected]

Learn more about this action in arillso/action.ansible.collection

Choose a version

Action: Ansible Collection

Build and publish an Ansible Collection to Ansible Galaxy.

Inputs

api_key

api_key

Required: Ansible Galaxy API key.

This should be stored in a Secret on GitHub. See Creating and Using Secrets Encrypted Variables.

collection_dir

Default: ./

The directory in which the Ansible Collection is stored. This defaults to the project root.

Only change this if your Collection is not stored in your project root.

galaxy_version

Semver-compatible string: 1, 1.1, 1.1.1, 1.1.1-alpha

Dynamically inject a semver-compatible version into your galaxy.yml file.

Example Usage

- name: Build and Deploy Collection
  uses: arillso/action.ansible.collection@master
  with:
    api_key: '3fe6ff42edm793ddei5'

Inspired

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2022, Arillso