Skip to content

feat: add release workflow for GitHub actions #1

feat: add release workflow for GitHub actions

feat: add release workflow for GitHub actions #1

Workflow file for this run

name: Release the Ansible role to Ansible Galaxy
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout the current branch
uses: actions/checkout@v4
- name: Setup of Python 3
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Ansible dependencies
run: pip3 install ansible-core
- name: Release the Ansible role
run: >-
ansible-galaxy role import --api-key ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)