A GitHub action to push an Ansible role to Ansible Galaxy.
This action requires Ansible 2.9+ to be pre-installed. Ansible is included by default in the current GitHub workflow Ubuntu images, which means this action should run quickly since it does not need to install anything.
The Ansible Galaxy API key, required.
Here is a default configuration. Note it is not necessary to checkout the repository ๐, only the repository owner and name are required and these are obtained from the environment.
---
on:
push:
tags:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: galaxy
uses: ome/action-ansible-galaxy-publish@main
with:
galaxy-api-key: ${{ secrets.GALAXY_API_KEY }}