Skip to content

Workflow file for this run

name: ansible-collection-publish
on:
push:
branches:
- ah-pipeline
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install ansible
- name: Build collection
run: |
ansible-galaxy collection build
- name: Publish collection
run: |
ansible-galaxy collection publish *.tar.gz --api-key ${{ secrets.ANSIBLE_GALAXY_API_KEY }}