Skip to content

ci: Add Ansible Galaxy publishing workflow #2

ci: Add Ansible Galaxy publishing workflow

ci: Add Ansible Galaxy publishing workflow #2

Workflow file for this run

name: Build and publish to Ansible Galaxy
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.x'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install ansible
# ansible-galaxy collection install -r requirements.yml
- name: Build and publish
run: |
ansible-galaxy collection build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: galaxy-collection
path: '*.tar.gz'
#ansible-galaxy collection publish *.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }}