Skip to content

Merge pull request #156 from michaelrigart/fix-publish #9

Merge pull request #156 from michaelrigart/fix-publish

Merge pull request #156 from michaelrigart/fix-publish #9

Workflow file for this run

---
name: Publish Ansible Role
'on':
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
jobs:
galaxy:
runs-on: ubuntu-latest
name: Publish Ansible Role to Ansible Galaxy
steps:
# NOTE: The GitHub namespace is lower case, but the Galaxy namespace is upper case.
# Hard code to the Galaxy namespace.
- name: Publish Role 🚀
run: ansible-galaxy import MichaelRigart $(basename ${{ github.repository }}) --api-key ${{ secrets.GALAXY_API_KEY }} --branch ${{ github.ref_name }}